summaryrefslogtreecommitdiffstats
path: root/update_jdn.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-10 14:56:21 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-10 14:56:21 +0100
commit40b41eca40e196732c11ec04bfc3c79a304dfbfe (patch)
tree2c0457e60eb881e23338627f305fdb2ac3a8ff7a /update_jdn.sh
parent4f63fe71687cf49a9204370f59ad16b3d6f369a9 (diff)
downloadjenkins.debian.net-40b41eca40e196732c11ec04bfc3c79a304dfbfe.tar.xz
only update docs if needed
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-xupdate_jdn.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 3b4c7ecc..df3bb596 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -61,14 +61,14 @@ cd $BASEDIR
cp -r bin logparse job-cfg /srv/jenkins/
cp procmailrc /var/lib/jenkins/.procmailrc
explain "Jenkins updated."
-cp -r README INSTALL TODO d-i-preseed-cfgs userContent/* /var/lib/jenkins/userContent/
+cp -pr README INSTALL TODO d-i-preseed-cfgs userContent/* /var/lib/jenkins/userContent/
cd /var/lib/jenkins/userContent/
ASCIIDOC_PARAMS="-a numbered -a data-uri -a iconsdir=/etc/asciidoc/images/icons -a scriptsdir=/etc/asciidoc/javascripts -b html5 -a toc -a toclevels=4 -a icons -a stylesheet=$(pwd)/theme/debian-asciidoc.css"
-asciidoc $ASCIIDOC_PARAMS -o about.html README
-asciidoc $ASCIIDOC_PARAMS -o todo.html TODO
-asciidoc $ASCIIDOC_PARAMS -o setup.html INSTALL
+[ about.html -nt README ] || asciidoc $ASCIIDOC_PARAMS -o about.html README
+[ todo.html -nt TODO ] || asciidoc $ASCIIDOC_PARAMS -o todo.html TODO
+[ setup.html -nt INSTALL ] || asciidoc $ASCIIDOC_PARAMS -o setup.html INSTALL
rm TODO README INSTALL
-explain "Updated about.html, setup.html and todo.html."
+explain "Updated user content for Jenkins."
#
# run jenkins-job-builder to update jobs if needed