File: defuzz

package info (click to toggle)
cfengine2 2.1.14-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,688 kB
  • ctags: 12
  • sloc: sh: 290; makefile: 113; perl: 29
file content (23 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh
#
# defuzz: apply patches (with fuzz?) then update them

set -e

TMP=${TMP-/tmp}; export TMP
retval=0

for patch in "$@"; do
	echo "** De-fuzzing $patch **"
	patchfile="debian/patches/$patch"
	test -f "$patchfile" || {
		echo "Patch $patch not found" >&2
		retval=1
		continue
	}
	dbs-edit-patch "$patch"
	"$TMP/$patch/dbs-update-patch"
	rm -r "$TMP/$patch"
done

exit $retval