diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-12-04 11:41:37 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-12-04 11:58:52 -0700 |
commit | 06240e0a439e174f63d8274e2535ddc5482709a7 (patch) | |
tree | 34d52edcbc088e47328912652291313600cf2e75 /.quiltrc | |
parent | bf46e5fd18e4c9d86e2091f39261bb4d63c1af51 (diff) | |
download | dotfiles-06240e0a439e174f63d8274e2535ddc5482709a7.tar.gz |
tidy up .quiltrc
Diffstat (limited to '.quiltrc')
-rw-r--r-- | .quiltrc | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -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 |