summaryrefslogtreecommitdiff
path: root/.quiltrc
blob: 79acb9c4f20fa99893d087a4cd916ff2768c73d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- sh -*-

# 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
unset file