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
60 fail "UNKNOWN OPTION $arg ($*)"
67 fail "BAD USAGE $arg ($noo $*)"
72 if [ $noo != 2 ]; then
77 patch=${patch#$pwd/debian/patches/}
78 rm -f debian/patches/series
79 printf "%s\n" "$patch" >debian/patches/series
81 dpkg-source --before-build .
84 git checkout debian/patches/series
88 #printf 'APPLIED '; date --iso-8601=ns