From 4760ee4faa118d51c90a281bf4a3ca024c5d5855 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Tue, 17 Sep 2002 15:16:12 +0000 Subject: [PATCH] Use \.v0 as backup_suffix. Eliminate uniq. Use -u1 -I'^#[.,:~]' as diff option for *.po files. --- maint/ldiff | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/maint/ldiff b/maint/ldiff index b72f02b43..53873cbbb 100755 --- a/maint/ldiff +++ b/maint/ldiff @@ -1,12 +1,12 @@ -#!/bin/sh +#! /bin/sh # This script makes pretty looking patches provided that the old files # are kept around with the .v0 suffix. -: ${backup_suffix="v0"} -backup_files=`find . -path "*.$backup_suffix" -type f | sort | uniq` +: ${backup_suffix="\.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'$,,'` + newfile=`echo $oldfile | sed 's,^\./,,;s,'$backup_suffix'$,,'` oldlabel="$oldprefix$newfile" newlabel="$newprefix$newfile" find "$oldfile" ! -size 0 | grep . >/dev/null || \ @@ -15,6 +15,7 @@ for oldfile in $backup_files; do { newfile="/dev/null"; newlabel="/dev/null"; } case $newfile in *.c) dflags="-u -p" ;; + *.po) dflags="-u1 -I'^#[:,.~]'" *ChangeLog*) dflags="-u1" ;; *) dflags="-u" ;; esac