Change to directory $pack-$prev_ver (or however you renamed it)
and give this command:
- zcat somepath/$pack-$prev_ver-$curr_ver.diff.gz | patch -p1
+ zcat somepath/$pack-$prev_ver-$curr_ver.diff.gz | patch -p1
It is a good idea to rename your current directory to $pack-$curr_ver now.
EOF
-sed -ne '/^diff.*VERSION/,/^+[0-9][0-9]*/ p' $tmp_name >> $diff_name
-echo >> $diff_name
-sed -e '/^diff.*VERSION/,/^+[0-9][0-9]*/ d' $tmp_name >> $diff_name
+#sed -ne '/^diff.*VERSION/,/^+[0-9][0-9]*/ p' $tmp_name >> $diff_name
+#echo >> $diff_name
+#sed -e '/^diff.*VERSION/,/^+[0-9][0-9]*/ d' $tmp_name >> $diff_name
+awk '/^diff.*\/VERSION/ {x=1; print; next}; /^diff.*/ && x == 1 {x = 2}; x == 1 {print}' $tmp_name >> $diff_name
+awk '/^diff.*\/VERSION/ {x=1; next}; /^diff.*/ && x == 1 {x = 2; print}; x != 1 {print}' $tmp_name >> $diff_name
+
rm $tmp_name
#include <string.h>
#include <assert.h>
#include <errno.h>
+#include <ctype.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
fputs ("' detected\n",stderr);
esc = 2;
}
- else
+ else if (isascii (c) && isprint (c))
putc (c, stderr);
+ else
+ printf ("\\%02x", c );
}
if ( (rc=pclose (fp)) )
{