mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Allow comma(s) in backup_suffix
This commit is contained in:
parent
4760ee4faa
commit
508ac13e54
@ -6,7 +6,7 @@
|
|||||||
: ${backup_suffix="\.v0"}
|
: ${backup_suffix="\.v0"}
|
||||||
backup_files=`find . -path "*$backup_suffix" -type f | sort -u`
|
backup_files=`find . -path "*$backup_suffix" -type f | sort -u`
|
||||||
for oldfile in $backup_files; do
|
for oldfile in $backup_files; do
|
||||||
newfile=`echo $oldfile | sed 's,^\./,,;s,'$backup_suffix'$,,'`
|
newfile=`echo $oldfile | sed 's,^\./,,;s/'$backup_suffix'$//'`
|
||||||
oldlabel="$oldprefix$newfile"
|
oldlabel="$oldprefix$newfile"
|
||||||
newlabel="$newprefix$newfile"
|
newlabel="$newprefix$newfile"
|
||||||
find "$oldfile" ! -size 0 | grep . >/dev/null || \
|
find "$oldfile" ! -size 0 | grep . >/dev/null || \
|
||||||
@ -15,7 +15,7 @@ for oldfile in $backup_files; do
|
|||||||
{ newfile="/dev/null"; newlabel="/dev/null"; }
|
{ newfile="/dev/null"; newlabel="/dev/null"; }
|
||||||
case $newfile in
|
case $newfile in
|
||||||
*.c) dflags="-u -p" ;;
|
*.c) dflags="-u -p" ;;
|
||||||
*.po) dflags="-u1 -I'^#[:,.~]'"
|
*.po) dflags="-u1 -I'^#[:,.~]'";;
|
||||||
*ChangeLog*) dflags="-u1" ;;
|
*ChangeLog*) dflags="-u1" ;;
|
||||||
*) dflags="-u" ;;
|
*) dflags="-u" ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user