more put-n-paste friendly
[infrastructure.git] / scripts / builds.sh
index 64cf2f0..c2a2266 100755 (executable)
@@ -1,20 +1,20 @@
 #!/bin/bash
 # $Id$
 # $URL$
-hostname=$(hostname)
-hostname=$(basename $hostname .inria.fr)
 
-function liquid () { [ $hostname = liquid ] ; }
-function reed () { [ $hostname = reed ] ; }
-function velvet () { [ $hostname = velvet ] ; }
+function liquid () { [ $(basename $(hostname) .inria.fr) = liquid ] ; }
+function reed () { [ $(basename $(hostname) .inria.fr) = reed ] ; }
+function velvet () { [ $(basename $(hostname) .inria.fr) = velvet ] ; }
 
 ### f12 bootstrap : 2.6.31, util-vserver and yum, for a plain fedora 12 build or test box
+# enable on a need-by-need basis
 # liquid && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d f12 -f f12 -p linux64 -b @DATE@--f12-f12-64
 # liquid && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d f12 -f f12 -p linux32 -b @DATE@--f12-f12-32
 
 ### old 2.6.22 kernel on f12 
-liquid && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d onelab -f f12 -p linux32 -b @DATE@--1l-f12-32
-liquid && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d onelab -f f12 -p linux64 -b @DATE@--1l-f12-64 -B
+# using the old 39-1 tag, has no support for the getline patch, thus broken on f12
+# liquid && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d onelab -f f12 -p linux32 -b @DATE@--1l-f12-32
+# liquid && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d onelab -f f12 -p linux64 -b @DATE@--1l-f12-64 -B
 
 # 2.6.27 kernel on f12
 liquid && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d onelab -t onelab-k27-tags.mk -f f12 -p linux32 -b @DATE@--k27-f12-32
@@ -46,4 +46,4 @@ reed && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d onelab -f centos5 -p
 
 ########## wextoolbox variants                                                                                                                   
 velvet && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d wextoolbox -p linux32 -f f10 -b @DATE@--wextoolbox-f10-32 -B
-velvet && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d wextoolbox -p linux32 -f f12 -b @DATE@--wextoolbox-f12-32 -B
+velvet && /root/bin/vbuild-nightly.sh -m build@onelab.eu   -d wextoolbox -p linux32 -f f12 -b @DATE@--wextoolbox-f12-32