File: dquilt

package info (click to toggle)
debmake-doc 1.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,840 kB
  • sloc: makefile: 914; sh: 692; python: 202; ansic: 114; sed: 16
file content (13 lines) | stat: -rwxr-xr-x 649 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done
if [ -d $d/debian ]; 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
export QUILT_PATCHES QUILT_PATCH_OPTS QUILT_DIFF_ARGS QUILT_REFRESH_ARGS QUILT_COLORS
quilt "$@"