[ci skip] Revert change to apatch script

This commit is contained in:
Jason Penilla 2021-12-21 19:54:51 -08:00
parent 264b11d9f3
commit a6a6a3db24
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -40,7 +40,7 @@ fi
for i in $(find . -name \*.rej); do for i in $(find . -name \*.rej); do
base=$(echo "$i" | sed 's/.rej//g') base=$(echo "$i" | sed 's/.rej//g')
if [ -f "$i" ]; then if [ -f "$i" ]; then
sed -e 's/^diff a\/\(.*\) b\/\(.*\)[[:space:]].*rejected.*$/--- \1\n+++ \2/' -i '' $i && wiggle -v -l --replace "$base" "$i" sed -e 's/^diff a\/\(.*\) b\/\(.*\)[[:space:]].*rejected.*$/--- \1\n+++ \2/' -i $i && wiggle -v -l --replace "$base" "$i"
rm "$base.porig" "$i" rm "$base.porig" "$i"
else else
echo "No such file: $base" echo "No such file: $base"