File: patch.unapply

package info (click to toggle)
apache 1.3.33-6sarge3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,856 kB
  • ctags: 86
  • sloc: sh: 1,229; makefile: 682; perl: 215
file content (19 lines) | stat: -rw-r--r-- 414 bytes parent folder | download
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/patches $SOURCE_DIR/$TAR_DIR
for f in `find debian/patches -type f -maxdepth 1|sort -r`;do
	stampfile=$STAMP_DIR/patches/`basename $f`
	if [ -e $stampfile ];then
		START $f
		if file2cat $f | (cd $SOURCE_DIR/$TAR_DIR;patch -p1 -R) > $stampfile.log;then
			OK
			rm $stampfile
		else
			FAILED
			exit 1
		fi
	else
		ALREADY_DONE $f
	fi
done