Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMartin Dengler <martin@martindengler.com>2009-07-06 23:10:27 (GMT)
committer Martin Dengler <martin@martindengler.com>2009-07-06 23:10:27 (GMT)
commitcb31f5492378c8ada5b9efac55d8eca7f910027c (patch)
tree44ff377b4dee262091e2f2c8e0eef53416d5f210 /build
parentdc0a2ed292bac5409e24c23a34b6c08713e69bfa (diff)
build: overcomplicate next build naming process
Diffstat (limited to 'build')
-rwxr-xr-xbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/build b/build
index 4ce87e5..4dbcee8 100755
--- a/build
+++ b/build
@@ -2,8 +2,9 @@
pushd images
date >> buildlog
prevbuild=$(/bin/ls *.done | tail -1)
+buildstem=$(python -c "print '$prevbuild'.split('.')[0][:-2];")
nextbuild=$(python -c "print '%0.2d' % (int('$prevbuild'.split('.')[0][-2:]) + 1);")
-buildname=soasxo$nextbuild
+buildname=$buildstem$nextbuild
echo building $buildname
/usr/bin/time nice make -j 3 -f ../Makefile ${buildname}.done >> buildlog 2>&1
date >> buildlog