summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Drung <bdrung@ubuntu.com>2010-01-08 01:08:07 +0100
committerBenjamin Drung <bdrung@ubuntu.com>2010-01-08 01:08:07 +0100
commitc27daa564e7cd4926ac3335614b80ea788f686d3 (patch)
tree42e9ca9be14a7f4d929da996d95cda21598e8cd2 /src
parent83ce1dd2ab5aab381e7e494bd0d96f4962fbc4ee (diff)
Add usage function for printing the help.
- update src/dh_xul-ext - update src/install-xpi
Diffstat (limited to 'src')
-rwxr-xr-xsrc/dh_xul-ext12
-rwxr-xr-xsrc/install-xpi16
2 files changed, 28 insertions, 0 deletions
diff --git a/src/dh_xul-ext b/src/dh_xul-ext
index 0702447..725d0b5 100755
--- a/src/dh_xul-ext
+++ b/src/dh_xul-ext
@@ -184,6 +184,18 @@ def generate_substvars(script_name, xul_apps, package, verbose=False):
f.writelines(lines)
f.close()
+def usage(output):
+ print >> output, """Usage: %s [options]
+
+Options:
+ -p, --package=<value> calculate substvars only for the specified package
+
+General options:
+ -h, --help display this help and exit
+ -v, --verbose print more information
+
+See %s(1) for more info.""" % (sys.argv[0], os.path.basename(sys.argv[0]))
+
if __name__ == "__main__":
try:
long_opts = ["help", "package", "verbose"]
diff --git a/src/install-xpi b/src/install-xpi
index 314fdd4..071507c 100755
--- a/src/install-xpi
+++ b/src/install-xpi
@@ -144,6 +144,22 @@ def get_first_package():
packages = map(lambda x: x[x.find(":")+1:].strip(), package_lines)
return packages[0]
+def usage(output):
+ print >> output, """Usage: %s [options] <xpi-file>
+
+Options:
+ -x, --exclude=<file> do not install specified file
+ -l, --link=<directory> link from directory to extension directory
+ -p, --package=<value> install the extension into specified package
+ --preserve-permissions do not adjust the file permissions
+ -r, --remove-license-files do not install license files
+
+General options:
+ -h, --help display this help and exit
+ -v, --verbose print more information
+
+See %s(1) for more info.""" % (sys.argv[0], os.path.basename(sys.argv[0]))
+
if __name__ == "__main__":
try:
long_opts = ["exclude", "help", "link", "package",