blob: d59ea6a9af205258bf6f6f8bb6745436355183e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# pkgpatch -- patch, saving original files
move()
{
for orig in *.$1; do
mv -i "$orig" "${orig%.$1}".$2
done
}
move orig ~1~
trap 'move ~1~ orig; trap -' INT QUIT TERM EXIT
patch -Vt -F3 "$@"
|