start of a release build system (doesn't do much yet)
authorRudolf Polzer <divverent@alientrap.org>
Thu, 17 Jun 2010 12:53:28 +0000 (14:53 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 17 Jun 2010 12:54:45 +0000 (14:54 +0200)
all

diff --git a/all b/all
index 0e794e4771d94c989bee80b76f8769683d07feea..80a43e6525d962f30e8cee3ce505d9b39594ed9e 100755 (executable)
--- a/all
+++ b/all
@@ -501,6 +501,9 @@ case "$cmd" in
                        verbose make $MAKEFLAGS "$@" "$T"
                done
                verbose "$SELF" update-maps
+               ;;
+       makebuild)
+               
                ;;
        run)
                if [ -n "$WE_HATE_OUR_USERS" ]; then
@@ -748,6 +751,52 @@ case "$cmd" in
                rm -f "$t"
                echo "$report" | ssh nexuiz@rm.endoftheinternet.org cat '>>' public_html/xonotic-merge-notes.txt
                ;;
+
+       # release building goes here
+       release-mkdir)
+               mkdir -p Xonotic/"$1"
+               ;;
+       release-prepare)
+               "$SELF" each git clean -fxd
+               mkdir -p Xonotic
+               "$SELF" release-copy Docs/
+               "$SELF" release-copy misc/
+               "$SELF" release-copy server/
+               "$SELF" release-copy xonotic-linux-glx.sh
+               "$SELF" release-copy xonotic-linux-sdl.sh
+               "$SELF" release-mkdir data
+               ;;
+       release-gamedata)
+               "$SELF" release-copy data/font-dejavu.pk3dir/
+               "$SELF" release-copy data/xonotic-data.pk3dir/
+               "$SELF" release-copy data/xonotic-maps.pk3dir/
+               "$SELF" release-copy data/xonotic-music.pk3dir/
+               "$SELF" release-copy data/xonotic-nexcompat.pk3dir/
+               ;;
+       release-copy)
+               rsync --exclude=.git -vaSHPAX "$1" Xonotic/"$1"
+               ;;
+       release-engine)
+               mv Xonotic/misc/buildfiles/w32/* Xonotic/
+               mv Xonotic/misc/buildfiles/osx/* Xonotic/
+               ;;
+       release-pack)
+               # recompress, and edit
+               ;;
+       release-maps)
+               "$SELF" update-maps
+               ;;
+       release-finish)
+               ;;
+       release)
+               "$SELF" release-prepare
+               "$SELF" release-engine
+               "$SELF" release-gamedata
+               "$SELF" release-maps
+               "$SELF" release-finish
+               "$SELF" release-pack
+               ;;
+
        *)
                echo "Usage:"
                echo "  $SELF pull"