Author: glen                         Date: Thu Jul 27 22:09:59 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use sed to edit CVS/Entries

---- Files affected:
SPECS:
   workcleanup.sh (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/workcleanup.sh
diff -u SPECS/workcleanup.sh:1.3 SPECS/workcleanup.sh:1.4
--- SPECS/workcleanup.sh:1.3    Thu Jul 27 23:34:37 2006
+++ SPECS/workcleanup.sh        Fri Jul 28 00:09:54 2006
@@ -22,14 +22,12 @@
 
 LIST=$(~/rpm/SPECS/specparser.pl --asf $1);
 if [ "x$PARTIAL" == x ]; then
-rpmbuild -bs --rmsource --rmspec --clean $1
+       rpmbuild -bs --rmsource --rmspec --clean $1
 fi
 if [ $? == 0 ]; then
-       grep -v "\/$1\/" ~/rpm/SPECS/CVS/Entries > ~/rpm/SPECS/CVS/Entries.new
-       mv -f ~/rpm/SPECS/CVS/Entries{.new,}
+       # /3DKit.spec/1.10/Wed Jan 18 12:46:16 2006//
+       sed -i -e "/^\/$1\//d" ~/rpm/SPECS/CVS/Entries
        for i in $LIST; do
-               grep -v "\/$i\/" ~/rpm/SOURCES/CVS/Entries > 
~/rpm/SOURCES/CVS/Entries.new
-               # diff ~/rpm/SOURCES/CVS/Entries ~/rpm/SOURCES/CVS/Entries.new
-               mv -f ~/rpm/SOURCES/CVS/Entries{.new,}
+               sed -i -e "/^\/$i\//d" ~/rpm/SPECS/CVS/Entries
        done
 fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/workcleanup.sh?r1=1.3&r2=1.4&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to