diff options
author | Micah Anderson <micah@riseup.net> | 2007-02-23 18:04:04 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2007-02-23 18:04:04 +0000 |
commit | 05c26446ed65681528387f6c66473c61eebe7224 (patch) | |
tree | bbbd9bfce2bda17e0d399d1c97959c4a2937c6eb /handlers/maildir | |
parent | d15a347be54fea3ae44c595b454b22fb41149271 (diff) | |
download | backupninja-05c26446ed65681528387f6c66473c61eebe7224.tar.gz backupninja-05c26446ed65681528387f6c66473c61eebe7224.tar.bz2 |
updated autotools abstraction to properly pick up different awk, sed,
and md5sum locations
Diffstat (limited to 'handlers/maildir')
-rw-r--r-- | handlers/maildir | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers/maildir b/handlers/maildir index 49b2542..ab89f70 100644 --- a/handlers/maildir +++ b/handlers/maildir @@ -157,7 +157,7 @@ function do_rotate() { fi # Rotate the current list of backups, if we can. - oldest=\`find $backuproot -type d -maxdepth 1 -name \$rottype'.*' | sed 's/^.*\.//' | sort -n | tail -1\` + oldest=\`find $backuproot -type d -maxdepth 1 -name \$rottype'.*' | @SED@ 's/^.*\.//' | sort -n | tail -1\` #echo "Debug: oldest \$oldest" [ "\$oldest" == "" ] && oldest=0 for (( i=\$oldest; i > 0; i-- )); do @@ -201,7 +201,7 @@ function do_rotate() { for rottype in daily weekly monthly; do max=\$((keep\${rottype}+1)) dir="$backuproot/\$rottype" - oldest=\`find $backuproot -type d -maxdepth 1 -name \$rottype'.*' | sed 's/^.*\.//' | sort -n | tail -1\` + oldest=\`find $backuproot -type d -maxdepth 1 -name \$rottype'.*' | @SED@ 's/^.*\.//' | sort -n | tail -1\` [ "\$oldest" == "" ] && oldest=0 # if we've rotated the last backup off the stack, remove it. for (( i=\$oldest; i >= \$max; i-- )); do |