summaryrefslogtreecommitdiff
path: root/.quiltrc
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-10-07 18:25:25 +0200
committerJonas Smedegaard <dr@jones.dk>2012-10-07 18:25:25 +0200
commitff48b5fd1e7cdf1423819eb0a803fb671905e546 (patch)
tree39cdf2df17baf2f9906ee4ab93e7e2b4bb6f3f8d /.quiltrc
parentc77ee91c4fc591f5adffe8b064b2f2a2d24275a4 (diff)
Improved config from Debian maint-guide.
Diffstat (limited to '.quiltrc')
-rw-r--r--.quiltrc17
1 files changed, 10 insertions, 7 deletions
diff --git a/.quiltrc b/.quiltrc
index 72ed234..18fcb7e 100644
--- a/.quiltrc
+++ b/.quiltrc
@@ -1,7 +1,10 @@
-QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
-for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
- if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
- export QUILT_PATCHES=debian/patches
- break
- fi
-done
+d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done
+if [ -d $d/debian ] && [ -z $QUILT_PATCHES ]; then
+ # if in Debian packaging tree with unset $QUILT_PATCHES
+ QUILT_PATCHES="debian/patches"
+ QUILT_PATCH_OPTS="--reject-format=unified"
+ QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
+ QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
+ QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
+ if ! [ -d $d/debian/patches ]; then mkdir $d/debian/patches; fi
+fi