Auto latest version pickup in build script
authorNigel Metheringham <nigel.metheringham@dev.intechnology.co.uk>
Fri, 16 Jul 2010 14:32:00 +0000 (15:32 +0100)
committerNigel Metheringham <nigel.metheringham@dev.intechnology.co.uk>
Fri, 16 Jul 2010 14:32:00 +0000 (15:32 +0100)
script/build.sh

index 4f461215cd642caec2bcbf961058069d78f88953..1a9403ac2d23ea2921d31f2eec3a70f7915c7ac1 100755 (executable)
@@ -1,11 +1,13 @@
 #!/bin/sh
 
 TARGET=${1-/srv/www/vhosts/dev.exim.org}
+LATEST=`(cd docbook; ls -1d [0-9].[0-9]* | tail -1)`
 
+set -x
 script/gen.pl \
   --web \
   --spec docbook/*/spec.xml \
   --filter  docbook/*/filter.xml \
-  --latest 4.72 \
+  --latest ${LATEST} \
   --tmpl templates \
   --docroot ${TARGET}