aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2006-09-25 12:54:22 +0200
committerGuido Guenther <agx@bogon.sigxcpu.org>2006-09-25 12:54:22 +0200
commita2bc734d8faed2a2e3095fcd484941219faecf70 (patch)
tree900a4d02dcd7bac0f4d229e963a4dc8b3d363809
parent0a64daeff9162e6c160f405b04cad7d7cb95e427 (diff)
rename to git-buildpackage
-rwxr-xr-xgit-buildpackage (renamed from git-debuild)8
1 files changed, 5 insertions, 3 deletions
diff --git a/git-debuild b/git-buildpackage
index 274fa1b9..ac54928b 100755
--- a/git-debuild
+++ b/git-buildpackage
@@ -21,7 +21,6 @@ import sys,os,commands,re
import optparse
build_cmd='debuild'
-clean_cmd='%s clean' % build_cmd
def get_version():
versionre=re.compile('^Version:\s+(?P<version>[\d\w~\-\.]+)$')
@@ -49,8 +48,11 @@ def main(argv):
help="build with incommited changes in the source tree")
parser.add_option("--git-tag", action="store_true", dest="tag", default=False,
help="build with uncommited changes in the source tree")
+ parser.add_option("--git-buildcmd", dest="build_cmd", default=build_cmd,
+ help="command to build the package e.g. default is 'debuild'")
(options, args) = parser.parse_args(args)
+ clean_cmd='%s clean' % options.build_cmd
if not options.ignore_new:
if not exec_command(clean_cmd)[0]: sys.exit(1)
(status, out) = commands.getstatusoutput('git status')
@@ -58,9 +60,9 @@ def main(argv):
if msgs[0] != 'nothing to commit':
print "You have uncommitted changes in your source tree:"
print out
- print "Use --git-ignore_new to ovverride"
+ print "Use --git-ignore_new to override"
sys.exit(1)
- cmd=build_cmd+' -i.git '+" ".join(dpkg_args)
+ cmd=options.build_cmd+' -i.git '+" ".join(dpkg_args)
if not exec_command(cmd)[0]: sys.exit(1)
version=get_version()
if version and options.tag: