summaryrefslogtreecommitdiff
path: root/build_nightly
diff options
context:
space:
mode:
Diffstat (limited to 'build_nightly')
-rw-r--r--build_nightly15
1 files changed, 15 insertions, 0 deletions
diff --git a/build_nightly b/build_nightly
new file mode 100644
index 0000000..cd17523
--- /dev/null
+++ b/build_nightly
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+build_user=$1
+if [ $USER != $build_user ]; then
+ su $build_user -c $0 "$@";
+ exit
+fi
+
+cd /home/$build_user/blastem
+hg revert -a
+hg pull
+hg up
+rev=`hg summary | sed -E -n 's/^parent: [^:]+:([^ ]+) .*$/\1/p'`
+sed -i -E "s/(define BLASTEM_VERSION \"[^-]+)-pre\"/\1-pre-$rev\"/"" blastem.c
+./build_release