blob: 594ea44c30d72f0b050e5527ebf9fae0423dc24f (
plain)
- #!/bin/sh
- set -e
- PRG=$(basename "$0")
- function showhelp() {
- cat <<EOF
- Usage: $PRG [git-buildpackage opts] [-- debuild opts]
- Example: $PRG --git-sign-tags
- EOF
- }
- gitopts=''
- while [ $# -gt 0 ]; do
- case $1 in
- -h|--help)
- showhelp
- exit 0
- ;;
- --)
- shift
- break
- ;;
- --git-*)
- gitopts="$gitopts $1"
- shift
- ;;
- *)
- echo "ERROR: Unknown argument \"$1\"!" >&2
- showhelp
- exit 1
- ;;
- esac
- done
- git-buildpackage \
- --git-builder="localdebuild -i\.git/ -I.git $@" \
- --git-cleaner="fakeroot debian/rules clean" \
- $gitopts
|