From ff48b5fd1e7cdf1423819eb0a803fb671905e546 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 7 Oct 2012 18:25:25 +0200 Subject: Improved config from Debian maint-guide. --- .quiltrc | 17 ++++++++++------- 1 file 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 -- cgit v1.2.3