From 855510b45bb7a04adfe95810f6ef2a48fa268033 Mon Sep 17 00:00:00 2001 From: "Andreas V. 'netrunner' Meier" Date: Mon, 28 Jun 2004 09:59:17 +0000 Subject: [PATCH] Andreas V. Meier: scripts/Create-CkSumPatch: emit one patch per changed file (rediffed) [2004062419091912741] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3421 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/Create-CkSumPatch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Create-CkSumPatch b/scripts/Create-CkSumPatch index 88010f6cb..73b980a79 100755 --- a/scripts/Create-CkSumPatch +++ b/scripts/Create-CkSumPatch @@ -54,7 +54,7 @@ while read cksum gzfile ; do checkthis=1 xfile="`basename $gzfile`" - descfile="`grep $xfile package/*/*/*.desc target/*/download.txt scripts/miscdown.txt | sed 's,:.*,,'`" + descfile="`grep $xfile package/*/*/*.desc target/*/download.txt | sed 's,:.*,,'`" rep="`echo $descfile | cut -f2 -d/`" pkg="`echo $descfile | cut -f3 -d/`" @@ -79,7 +79,7 @@ while read cksum gzfile ; do if [ -d package/$rep ] ; then if [ -f $descfile ] ; then sedscript="s,\[D\] *00* *$xfile,[D] $cksum $xfile," - sed "$sedscript" < $descfile > /tmp/$$ + sed "$sedscript" -i /tmp/$$ if cmp -s ./$descfile /tmp/$$ ; then echo "!!! SED script didn't change anything:" >&2 echo "!!! $sedscript" >&2