New revision in http://www-verimag.imag.fr/~moy/bzr/dvc/moy/
------------------------------------------------------------
revno: 511
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Matthieu Moy <[EMAIL PROTECTED]>
branch nick: moy
timestamp: Mon 2008-10-06 17:32:20 +0200
message:
  Hardcode "mkdir -p" and be a bit more defensive in dvc-cron.sh.
  
  My system doesn't have AC_PROG_MKDIR_P, so waiting for a system
  upgrade, I'll hardcode it in dvc-cron.sh. This should repair my cron
  job and avoid silent out-of-date snapshots of DVC.


=== modified file 'scripts/dvc-cron.sh'
--- a/scripts/dvc-cron.sh       2007-04-08 10:26:12 +0000
+++ b/scripts/dvc-cron.sh       2008-10-06 15:32:20 +0000
@@ -11,10 +11,15 @@
 
 echo "Executing $0 on $(date)."
 
-make tarball
+rm -f dvc-snapshot.tar.gz
+make MKDIR_P='mkdir -p' tarball || rm -f dvc-snapshot.tar.gz
+if [ ! -f dvc-snapshot.tar.gz ]; then
+    echo "Error creating tarball"
+    exit 1
+fi
 mkdir -p www/download/
 cp dvc-snapshot.tar.gz www/download/
-make -C texinfo dvc.html
+make MKDIR_P='mkdir -p' -C texinfo dvc.html
 mkdir -p www/docs/
 cp texinfo/dvc.html www/docs/dvc-snapshot.html
 


_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to