updates from MirBSD CVS
[shellsnippets/shellsnippets.git] / mksh / debian-dev / dot.quiltrc
1 # $MirOS: contrib/hosted/tg/deb/dot.quiltrc,v 1.3 2012/12/01 14:08:31 tg Exp $
2
3 while test -z "$QUILT_PATCHES" || test x"$QUILT_PATCHES" = x"-"; do
4         d=.
5         while :; do
6                 test -d $d/debian && test -x $d/debian/rules && break
7                 test x"$(/bin/readlink -e $d)" = x"/" && break
8                 d=$d/..
9         done
10         test -x $d/debian/rules || break
11
12         # now in Debian packaging tree with unset $QUILT_PATCHES
13
14         QUILT_PATCHES="debian/patches"
15         QUILT_PATCH_OPTS="--reject-format=unified"
16         QUILT_DIFF_OPTS=""
17         test -n "$QUILTRC_NO_DIFF_P" || \
18             QUILT_DIFF_OPTS="$QUILT_DIFF_OPTS --show-c-function"
19         QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
20         QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
21         QUILT_PUSH_ARGS="--color=auto"
22         QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
23         test -d $d/debian/patches || mkdir $d/debian/patches
24
25         # this is not a real loop, exit it always
26         break
27 done
28 test x"$QUILT_PATCHES" = x"-" && QUILT_PATCHES=patches
29 :