3
## All lines beginning with `## DP:' are a description of the patch.
4
## DP: Fix syntax errors in netbug
6
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
7
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
10
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
14
-patch) patch $patch_opts -p0 < $0;;
15
-unpatch) patch $patch_opts -p0 -R < $0;;
17
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
23
--- misc/netbug.orig 2005-11-02 09:55:12.000000000 +0100
24
+++ misc/netbug 2005-11-02 09:56:07.000000000 +0100
26
IFS="" read mail || exit 1
27
[ -z "$mail" ] && mail=kuznet@ms2.inr.ac.ru
29
-netbug=`mktemp -d -t netbug.XXXXXX` || {echo "$0: Cannot create temporary directory" >&2; exit 1; }
30
-netbugtar=`tempfile -d $netbug --suffix=tar.gz` || {echo "$0: Cannot create temporary file" >&2; exit 1; }
31
+netbug=`mktemp -d -t netbug.XXXXXX` || (echo "$0: Cannot create temporary directory" >&2; exit 1; )
32
+netbugtar=`tempfile -d $netbug --suffix=tar.gz` || (echo "$0: Cannot create temporary file" >&2; exit 1; )
34
trap "/bin/rm -rf $netbug $netbugtar" 0 1 2 3 13 15