summaryrefslogtreecommitdiff
path: root/.quiltrc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-12-04 11:41:37 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-12-04 11:58:52 -0700
commit06240e0a439e174f63d8274e2535ddc5482709a7 (patch)
tree34d52edcbc088e47328912652291313600cf2e75 /.quiltrc
parentbf46e5fd18e4c9d86e2091f39261bb4d63c1af51 (diff)
downloaddotfiles-06240e0a439e174f63d8274e2535ddc5482709a7.tar.gz
tidy up .quiltrc
Diffstat (limited to '.quiltrc')
-rw-r--r--.quiltrc26
1 files changed, 13 insertions, 13 deletions
diff --git a/.quiltrc b/.quiltrc
index 8db85ad7..79acb9c4 100644
--- a/.quiltrc
+++ b/.quiltrc
@@ -1,16 +1,16 @@
-# all from:
-# https://raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/
+# -*- sh -*-
-# detect Debian quilt patches
-for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
- if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
- export QUILT_PATCHES=debian/patches
- break
+# Use debian/patches unless it is dominated by a patches/ with a series file.
+file="$PWD"
+while true; do
+ if [ ! \( -O "$file" -o -G "$file" \) -o "$file" = / -o -e \
+ "$file/${QUILT_PATCHES:-patches}/${QUILT_SERIES:-series}" ]; then
+ break
+ elif [ -e "$file/debian/rules" -a -d "$file/debian/patches" ]; then
+ QUILT_PATCHES=debian/patches
+ break
+ else
+ file="$(dirname "$file")"
fi
done
-
-# generate nicer patches & use colour
-QUILT_PUSH_ARGS="--color=auto"
-QUILT_DIFF_ARGS="--no-timestamps --no-index -p ab --color=auto"
-QUILT_REFRESH_ARGS="--no-timestamps --no-index -p ab"
-QUILT_DIFF_OPTS='-p'
+unset file