File: fix.source.patch

package info (click to toggle)
lurkftp 0.99-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 148 kB
  • ctags: 12
  • sloc: sh: 174; makefile: 131
file content (21 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
. debian/scripts/vars
. debian/scripts/lib
mkdir -p $STAMP_DIR/upstream/fixpatch upstream
for f in `find debian/fixpatch -type f|sort`;do
	bf=$(basename $f)
	stampfile=$STAMP_DIR/upstream/fixpatch/$bf
	if [ ! -e $stampfile ];then
		[ -r debian/fixpatch/.$bf ] && sh debian/patches/.$bf && continue
		START $bf
		if file2cat $f | (cd upstream;patch -p1 ) > $stampfile.log;then
			OK
			touch $stampfile
		else
			FAILED
			exit 1
		fi
	else
		ALREADY_DONE $bf
	fi
done