File: unfix.source.patch

package info (click to toggle)
glide2-vg 2.46-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,352 kB
  • ctags: 15
  • sloc: sh: 170; makefile: 135
file content (19 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
. debian/scripts/vars
. debian/scripts/lib
mkdir -p $STAMP_DIR/upstream/fixpatch upstream
for f in `find debian/fixpatch -type f 2>/dev/null|sort`;do
	stampfile=$STAMP_DIR/upstream/fixpatch/`basename $f`
	if [ -e $stampfile ];then
		START $f
		if file2cat $f | (cd upstream;patch -p1 -R ) > $stampfile.log;then
			OK
			rm $stampfile
		else
			FAILED
			exit 1
		fi
	else
		ALREADY_DONE $f
	fi
done