From 40b41eca40e196732c11ec04bfc3c79a304dfbfe Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 10 Dec 2012 14:56:21 +0100 Subject: only update docs if needed --- update_jdn.sh | 10 +++++----- 1 file 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 -- cgit v1.2.3-70-g09d2