SPECS: adapter - add Q to abort chunkmode

glen glen at pld-linux.org
Wed Oct 25 01:02:40 CEST 2006


Author: glen                         Date: Tue Oct 24 23:02:38 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add Q to abort chunkmode

---- Files affected:
SPECS:
   adapter (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SPECS/adapter
diff -u SPECS/adapter:1.15 SPECS/adapter:1.16
--- SPECS/adapter:1.15	Sun Apr  2 03:55:21 2006
+++ SPECS/adapter	Wed Oct 25 01:02:33 2006
@@ -130,7 +130,7 @@
 	 tmpdir=$(mktemp -d ${TMPDIR:-/tmp}/adapter-XXXXXX) || exit
 	 awk -f adapter.awk $SPECFILE > $tmpdir/$SPECFILE || exit
 
-	 if [ "`diff --brief $SPECFILE $tmpdir/$SPECFILE`" ] ; then
+	 if [ "`diff --brief $SPECFILE $tmpdir/$SPECFILE`" ]; then
 		  diff -u $SPECFILE $tmpdir/$SPECFILE > $tmpdir/$SPECFILE.diff
 		  if [ -t 1 ]; then
 				diffcol $tmpdir/$SPECFILE.diff | less -r
@@ -147,11 +147,14 @@
 						  diff2hunks $tmpdir/$SPECFILE.diff
 						  for t in $(ls $tmpdir/$SPECFILE-*.diff); do
 								diffcol $t | less -r
-								echo -n "Accept? (Yes, [N]o)? "
+								echo -n "Accept? (Yes, [N]o, Quit)? "
 								read ans
 								case "$ans" in
 								[yYoO]) # y0 mama
 									patch < $t
+									;;
+								[Q])  # Abort
+									break
 									;;
 								esac
 						  done
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/adapter?r1=1.15&r2=1.16&f=u



More information about the pld-cvs-commit mailing list