Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Poirier <simpoir@Eridani.(none)>2009-09-04 14:52:09 (GMT)
committer Simon Poirier <simpoir@Eridani.(none)>2009-09-04 14:52:09 (GMT)
commit2ae87a1689d54043bf37c3ebc20acc6358949df8 (patch)
treee2755f144292a89304d35c591f0ceb9f4b2b1f76
parent70c4e9b8a3c444c9c411a514ede416c50dce5c6f (diff)
packager: put timestamp in var to avoid race conditions
-rwxr-xr-xcontrib/packager.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/packager.sh b/contrib/packager.sh
index c1bf752..a2ad9c5 100755
--- a/contrib/packager.sh
+++ b/contrib/packager.sh
@@ -105,12 +105,13 @@ if [ -e tutorius.iso ];then
rm tutorius.iso
fi
lbl=`egrep -o "CDLABEL=\S*" $ISO_PATH/isolinux/isolinux.cfg | head -n 1 | cut -d = -f 2`
+timestamp=`date +%Y%m%d`
mkisofs -b isolinux/isolinux.bin -c isolinux/boot.cat -o tutorius.iso -no-emul-boot -boot-load-size 4 -boot-info-table -V $lbl -J -r -hide-rr-moved iso/
-mv tutorius.iso /var/www/isos/tutorius-`date +%Y%m%d`.iso
-ln -sf /var/www/isos/tutorius-`date +%Y%m%d`.iso /var/www/isos/current.iso
-chown a+r /var/www/isos/tutorius-`date +%Y%m%d`.iso
-md5sum /var/www/isos/tutorius-`date +%Y%m%d`.iso > /var/www/isos/tutorius-`date +%Y%m%d`.md5
-shasum /var/www/isos/tutorius-`date +%Y%m%d`.iso > /var/www/isos/tutorius-`date +%Y%m%d`.sha
+mv tutorius.iso /var/www/isos/tutorius-$timestamp.iso
+ln -sf /var/www/isos/tutorius-$timestamp.iso /var/www/isos/current.iso
+chown a+r /var/www/isos/tutorius-$timestamp.iso
+md5sum /var/www/isos/tutorius-$timestamp.iso > /var/www/isos/tutorius-$timestamp.md5
+shasum /var/www/isos/tutorius-$timestamp.iso > /var/www/isos/tutorius-$timestamp.sha
echo