Fix issue where existing symlink is not updated
[exim-website.git] / script / build.sh
index 4f461215cd642caec2bcbf961058069d78f88953..408b0d499054f67be0aef39b6452746058163a92 100755 (executable)
@@ -1,11 +1,13 @@
 #!/bin/sh
 
-TARGET=${1-/srv/www/vhosts/dev.exim.org}
+TARGET=${1-/srv/www/vhosts/www.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}