Added "sprint" and "release" quality packaging
This commit is contained in:
@@ -28,15 +28,18 @@ elif [ "$1" == "common" ]; then
|
||||
PACKAGE=common
|
||||
else
|
||||
echo "Syntax:"
|
||||
echo "repackage {frontend|backend|extscripts|common} [stable]"
|
||||
echo "repackage {frontend|backend|extscripts|common} [sprint|release]"
|
||||
echo
|
||||
echo "If 'stable' is not given, -internal will be added to the package name."
|
||||
echo "If 'sprint' or 'release' is not given, -internal will be added to the package name."
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
if [ "$2" == "stable" ]; then
|
||||
CONTROLSUFFIX=-stable
|
||||
echo "Packaging STABLE for external deployment."
|
||||
if [ "$2" == "release" ]; then
|
||||
CONTROLSUFFIX=-release
|
||||
echo "Packaging FINISHED RELEASE for super-stable deployments."
|
||||
elif [ "$2" == "sprint" ]; then
|
||||
CONTROLSUFFIX=-sprint
|
||||
echo "Packaging END-OF-SPRINT for normal deployments."
|
||||
else
|
||||
CONTROLSUFFIX=-internal
|
||||
if [ "$1" == "extscripts" ]; then
|
||||
@@ -127,15 +130,15 @@ cp swarmops-$PACKAGENAME-latest.deb /home/prod/Smallwebs/Activizr-repo
|
||||
echo "Updating repositories..."
|
||||
scripts/update-repos swarmops-$PACKAGENAME-latest.deb
|
||||
|
||||
if [ "$2" != "stable" ]; then
|
||||
echo "Installing on swarmops-dev for testing..."
|
||||
if [ "$2" == "" ]; then
|
||||
echo "Installing INTERNAL BUILD on swarmops-dev for testing..."
|
||||
dpkg -i swarmops-$PACKAGENAME-latest.deb
|
||||
fi
|
||||
|
||||
echo "Notifying developers that new build has deployed for test..."
|
||||
echo "Swarmops $PACKAGENAME build $(cat $BUILDIDSOURCE | tr -d ' \r') has been deployed as daily build." > deploymsg.txt
|
||||
echo "Test it at http://dev.swarmops.com/ as usual." >> deploymsg.txt
|
||||
mail -s "Swarmops $PACKAGENAME $(cat $BUILDIDSOURCE) deployed as daily" "swarmops-builds@falkvinge.net" < deploymsg.txt
|
||||
mail -s "Swarmops $PACKAGENAME $(cat $BUILDIDSOURCE) deployed" "swarmops-builds@falkvinge.net" < deploymsg.txt
|
||||
|
||||
rm deploymsg.txt
|
||||
rm $BUILDIDSOURCE
|
||||
|
||||
@@ -3,9 +3,9 @@ Version: --BuildNumber--
|
||||
Architecture: all
|
||||
Maintainer: Rick Falkvinge (swarmops-maintain@falkvinge.net)
|
||||
Depends: swarmops-common-internal
|
||||
Conflicts: swarmops-backend
|
||||
Conflicts: swarmops-backend,swarmops-backend-stable
|
||||
Homepage: http://swarmops.com/
|
||||
Description: Swarmops Backend
|
||||
Description: Swarmops Backend (Internal)
|
||||
Swarmops is a swarm activist administration system.
|
||||
This package is an internal development build.
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
Package: swarmops-backend-stable
|
||||
Version: --BuildNumber--
|
||||
Architecture: all
|
||||
Maintainer: Rick Falkvinge (swarmops-maintain@falkvinge.net)
|
||||
Depends: swarmops-common-stable,mono-runtime,libmono-corlib4.0-cil,libmono-posix4.0-cil,libmono-system-data4.0-cil
|
||||
Conflicts: swarmops-backend-internal,swarmops-backend
|
||||
Homepage: http://swarmops.com/
|
||||
Description: Swarmops Backend (Stable)
|
||||
Swarmops is a swarm activist administration system.
|
||||
This package is the back-end. It runs on Mono.
|
||||
Target is Ubuntu 11.10 and up.
|
||||
@@ -0,0 +1,11 @@
|
||||
Package: swarmops-backend
|
||||
Version: --BuildNumber--
|
||||
Architecture: all
|
||||
Maintainer: Rick Falkvinge (swarmops-maintain@falkvinge.net)
|
||||
Depends: swarmops-common,mono-runtime,libmono-corlib4.0-cil,libmono-posix4.0-cil,libmono-system-data4.0-cil
|
||||
Conflicts: swarmops-backend-internal,swarmops-backend-stable
|
||||
Homepage: http://swarmops.com/
|
||||
Description: Swarmops Backend
|
||||
Swarmops is a swarm activist administration system.
|
||||
This package is the back-end. It runs on Mono.
|
||||
Target is Ubuntu 11.10 and up.
|
||||
@@ -2,9 +2,9 @@ Package: swarmops-common-internal
|
||||
Version: --BuildNumber--
|
||||
Architecture: all
|
||||
Maintainer: Rick Falkvinge (swarmops-maintain@falkvinge.net)
|
||||
Conflicts: swarmops-common
|
||||
Conflicts: swarmops-common,swarmops-common-stable
|
||||
Homepage: http://swarmops.com/
|
||||
Description: Swarmops Common
|
||||
Description: Swarmops Common (Internal)
|
||||
Swarmops is a swarm activist administration system.
|
||||
This package is an internal development build.
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
Package: swarmops-common-stable
|
||||
Version: --BuildNumber--
|
||||
Architecture: all
|
||||
Maintainer: Rick Falkvinge (swarmops-maintain@falkvinge.net)
|
||||
Conflicts: swarmops-common-internal,swarmops-common
|
||||
Homepage: http://swarmops.com/
|
||||
Description: Swarmops Common (Stable)
|
||||
Swarmops is a swarm activist administration system.
|
||||
This package contains the common components between
|
||||
front-end and back-end.
|
||||
@@ -0,0 +1,10 @@
|
||||
Package: swarmops-common
|
||||
Version: --BuildNumber--
|
||||
Architecture: all
|
||||
Maintainer: Rick Falkvinge (swarmops-maintain@falkvinge.net)
|
||||
Conflicts: swarmops-common-internal,swarmops-common-stable
|
||||
Homepage: http://swarmops.com/
|
||||
Description: Swarmops Common
|
||||
Swarmops is a swarm activist administration system.
|
||||
This package contains the common components between
|
||||
front-end and back-end.
|
||||
@@ -3,9 +3,9 @@ Version: --BuildNumber--
|
||||
Architecture: all
|
||||
Maintainer: Rick Falkvinge (swarmops-maintain@falkvinge.net)
|
||||
Depends: swarmops-common-internal, apache2 (>= 2.2.20), mono-apache-server4 (>= 2.10-1), libapache2-mod-mono (>= 2.10-1), libgdiplus (>= 2.10-3), imagemagick, ghostscript
|
||||
Conflicts: swarmops-frontend
|
||||
Conflicts: swarmops-frontend,swarmops-frontend-stable
|
||||
Homepage: http://swarmops.com/
|
||||
Description: Swarmops Frontend
|
||||
Description: Swarmops Frontend (Internal)
|
||||
Swarmops is a swarm activist administration system.
|
||||
This package is an internal development build.
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
Package: swarmops-frontend-stable
|
||||
Version: --BuildNumber--
|
||||
Architecture: all
|
||||
Maintainer: Rick Falkvinge (swarmops-maintain@falkvinge.net)
|
||||
Depends: swarmops-common-stable, apache2 (>= 2.2.20), mono-apache-server4 (>= 2.10-1), libapache2-mod-mono (>= 2.10-1), libgdiplus (>= 2.10-3), imagemagick, ghostscript
|
||||
Conflicts: swarmops-frontend-internal,swarmops-frontend
|
||||
Homepage: http://swarmops.com/
|
||||
Description: Swarmops Frontend (Stable)
|
||||
Swarmops is a swarm activist administration system.
|
||||
This package is the front-end. It runs on Mono.
|
||||
Target is Ubuntu 11.10 and up.
|
||||
@@ -0,0 +1,11 @@
|
||||
Package: swarmops-frontend
|
||||
Version: --BuildNumber--
|
||||
Architecture: all
|
||||
Maintainer: Rick Falkvinge (swarmops-maintain@falkvinge.net)
|
||||
Depends: swarmops-common, apache2 (>= 2.2.20), mono-apache-server4 (>= 2.10-1), libapache2-mod-mono (>= 2.10-1), libgdiplus (>= 2.10-3), imagemagick, ghostscript
|
||||
Conflicts: swarmops-frontend-internal,swarmops-frontend-stable
|
||||
Homepage: http://swarmops.com/
|
||||
Description: Swarmops Frontend
|
||||
Swarmops is a swarm activist administration system.
|
||||
This package is the front-end. It runs on Mono.
|
||||
Target is Ubuntu 11.10 and up.
|
||||
Reference in New Issue
Block a user