summaryrefslogtreecommitdiff
path: root/localgitdebuild
blob: 2bc2c5e9b8943f86205cb4c3fdad93118d607de2 (plain)
  1. #!/bin/sh
  2. set -e
  3. PRG=$(basename "$0")
  4. function showhelp() {
  5. cat <<EOF
  6. Usage: $PRG [git-buildpackage opts] [-- debuild opts]
  7. Example: $PRG --git-sign-tags
  8. EOF
  9. }
  10. gitopts=''
  11. while [ $# -gt 0 ]; do
  12. case $1 in
  13. -h|--help)
  14. showhelp
  15. exit 0
  16. ;;
  17. --)
  18. shift
  19. break
  20. ;;
  21. --git-*)
  22. gitopts="$gitopts $1"
  23. shift
  24. ;;
  25. *)
  26. echo "ERROR: Unknown argument \"$1\"!" &>2
  27. showhelp
  28. exit 1
  29. ;;
  30. esac
  31. done
  32. git-buildpackage \
  33. --git-builder="localdebuild -i\.git/ -I.git $@" \
  34. --git-cleaner="fakeroot debian/rules clean" \
  35. $gitopts