[m-dev.] trivial diff: fix backupdir
Robert Ernst Johann JESCHOFNIK
rejj at students.cs.mu.oz.au
Thu Jan 27 14:41:43 AEDT 2000
Estimated hours taken: 0.001
tools/backupdir:
fix a small bug that caused find to die due to having a command
line that was too long.
Index: backupdir
===================================================================
RCS file: /home/mercury1/repository//mercury/tools/backupdir,v
retrieving revision 1.2
diff -u -r1.2 backupdir
--- backupdir 2000/01/26 06:54:24 1.2
+++ backupdir 2000/01/27 03:35:09
@@ -33,7 +33,7 @@
-exec backuprevisions '{}' ';' | gzip -9 > $revisions)
# If there are changes in the directory since the backup,
# make a new backup.
- elif [ x"`find $dir/$subdir/* -newer $olddiff`" != x ] ; then
+ elif [ x"`find $dir/$subdir -newer $olddiff`" != x ] ; then
echo "Changes in $dir/$subdir, making new backup"
(cd $dir/$subdir; cvs -f diff -u -N . 2> /dev/null |
gzip -9 > $diff)
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list