4 case "$DGIT_ABSURD_DEBUG" in
5 ''|0) exec 3>/dev/null ;;
6 1) exec 3>>../../gbp-pq-output ;;
7 *) exec 3>>../../gbp-pq-output 2>&3 ;;
11 echo >&3 "DGIT ABSURD GIT APPLY (DEBUG) $*"
12 echo >&2 "DGIT ABSURD GIT APPLY (STDERR) $*"
22 if test "x$PATH" = "x$npath"; then
23 fail "PATH FILTER FAIL ($0 $self $PATH)"
29 apply) bypass=false; break ;;
31 *) bypass=true; break ;;
37 echo >&3 "DGIT ABSURD GIT APPLY - BYPASS: $*"
43 case "$DGIT_ABSURD_DEBUG" in
63 fail "UNKNOWN OPTION $arg ($*)"
70 fail "BAD USAGE $arg ($noo $*)"
75 if [ $noo != 2 ]; then
80 patch=${patch#$pwd/debian/patches/}
81 rm -f debian/patches/series
82 printf "%s\n" "$patch" >debian/patches/series
84 dpkg-source --before-build .
87 git checkout debian/patches/series
91 #printf 'APPLIED '; date --iso-8601=ns