]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
honor RELEASEDATE env var
authorRudolf Polzer <divverent@alientrap.org>
Fri, 3 Sep 2010 07:07:26 +0000 (09:07 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 3 Sep 2010 07:07:26 +0000 (09:07 +0200)
all

diff --git a/all b/all
index 6b417991c38f32924039ec33376179165fb9a144..58e1ea40bf8011ec3a6b4d971287cbc4df4f3403 100755 (executable)
--- a/all
+++ b/all
@@ -931,7 +931,11 @@ case "$cmd" in
                esac
                verbose rm -rf Xonotic Xonotic*.zip
                verbose mkdir -p Xonotic
-               verbose date +%Y%m%d > Xonotic/stamp.txt
+               if [ -n "$RELEASEDATE" ]; then
+                       verbose echo "$RELEASEDATE" > Xonotic/stamp.txt
+               else
+                       verbose date +%Y%m%d > Xonotic/stamp.txt
+               fi
                verbose git archive --format=tar HEAD -- Docs misc server xonotic-linux-glx.sh xonotic-linux-sdl.sh misc/buildfiles | {
                        verbose cd Xonotic
                        verbose mkdir data fteqcc source source/darkplaces source/fteqcc