From 307e6341479178f137aa979dfe865a2b220058b8 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Tue, 19 Nov 2002 18:56:52 +0000 Subject: [PATCH] Use first parameter as backup_suffix if backup_suffix is unset or empty --- maint/ldiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maint/ldiff b/maint/ldiff index 0c325b41e..519f97e6d 100755 --- a/maint/ldiff +++ b/maint/ldiff @@ -3,7 +3,7 @@ # This script makes pretty looking patches provided that the old files # are kept around with the .v0 suffix. -: ${backup_suffix="\.v0"} +: ${backup_suffix=${1:-"\.v0"}} backup_files=`find . -path "*$backup_suffix" -type f | sort -u` for oldfile in $backup_files; do newfile=`echo $oldfile | sed 's,^\./,,;s/'$backup_suffix'$//'`