diff options
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | man/install-xpi.1 | 66 | ||||
-rw-r--r-- | src/Makefile | 1 |
3 files changed, 71 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 5058209..c3636fa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -51,6 +51,9 @@ mozilla-devscripts (0.19) UNRELEASED; urgency=low - update src/Makefile - update src/xpi.mk - update debian/control + - wrote man page for install-xpi + - add man/install-xpi.1 + - update src/Makefile * packaging: - add homepage field - update debian/control @@ -63,7 +66,7 @@ mozilla-devscripts (0.19) UNRELEASED; urgency=low - update src/dh_xul-ext - update debian/control - -- Benjamin Drung <bdrung@ubuntu.com> Wed, 06 Jan 2010 21:29:45 +0100 + -- Benjamin Drung <bdrung@ubuntu.com> Wed, 06 Jan 2010 23:43:08 +0100 mozilla-devscripts (0.18) unstable; urgency=low diff --git a/man/install-xpi.1 b/man/install-xpi.1 new file mode 100644 index 0000000..1db95d1 --- /dev/null +++ b/man/install-xpi.1 @@ -0,0 +1,66 @@ +.\"Copyright (c) 2010 Benjamin Drung <bdrung@ubuntu.com> +.\" +.\"Permission is hereby granted, free of charge, to any person obtaining a copy +.\"of this software and associated documentation files (the "Software"), to deal +.\"in the Software without restriction, including without limitation the rights +.\"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +.\"copies of the Software, and to permit persons to whom the Software is +.\"furnished to do so, subject to the following conditions: +.\" +.\"The above copyright notice and this permission notice shall be included in +.\"all copies or substantial portions of the Software. +.\" +.\"THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +.\"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +.\"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +.\"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +.\"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +.\"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +.\"THE SOFTWARE. +.TH INSTALL-XPI "1" "January 2010" "install-xpi" "mozilla-devscripts suite" +.SH NAME +install-xpi \- installs a xpi file into a Debian package +.SH SYNOPSIS +.B install-xpi +[\fIoptions\fP] +\fIxpi-file\fR +.SH DESCRIPTION +.B install-xpi +is a helper tool for packaging XUL extensions. It installs the given xpi file +into the correct directory and creates the required links based on the data +in the install.rdf file. +.B install-xpi +will correct the file permissions unless \fR\-\-preserve\-permissions\fP is +specified. +.SH OPTIONS +.TP +\fB\-x\fR \fIfile\fP, \fB\-\-exclude\fR=\fIfile\fP +The specified \fIfile\fP from the xpi file will not be installed. You can use +this parameter several times. +.TP +\fB\-h\fR, \fB\-\-help\fR +Display a brief help message. +.TP +\fB\-l\fR \fIdirectory\fP, \fB\-\-link\fR=\fIdirectory\fP +An additional link from the \fIdirectory\fP to the installation directory of +the extension will be created. You can use this parameter several times. +.TP +\fB\-p\fR \fIpackage\fP, \fB\-\-package\fR=\fIpackage\fP +The xpi file will be installed in the specified binary package. If this +parameter is not provided, the first binary package listed in debian/control +will be used. +.TP +.B \-\-preserve\-permissions +The permissions of the files in the xpi file will not be modified. If this +parameter is not provided, +.B install-xpi +will try to correct the permissions of the files to 644 (files that starts with +a shebang will be corrected to 755). +.TP +\fB\-r\fR, \fB\-\-remove-license-files\fR +Files with names like copying, licence, or license will not be installed. +.TP +\fB\-v\fR, \fB\-\-verbose\fR +Print more information. +.SH AUTHOR +Benjamin Drung <bdrung@gmail.com> diff --git a/src/Makefile b/src/Makefile index 1b82092..05ddaea 100644 --- a/src/Makefile +++ b/src/Makefile @@ -97,6 +97,7 @@ install: $(subst_files) $(extra_files) $(foreach dir,$(extra_dirs),$(wildcard $( install -m 644 xul-ext.pm $(DESTDIR)/usr/share/perl5/Debian/Debhelper/Sequence/xul_ext.pm install-man: + install -D -m 644 ../man/install-xpi.1 $(DESTDIR)$(MANDIR)/man1/install-xpi.1 install -D -m 644 ../man/moz-version.1 $(DESTDIR)$(MANDIR)/man1/moz-version.1 install -D -m 644 ../man/xpi-pack.1 $(DESTDIR)$(MANDIR)/man1/xpi-pack.1 install -D -m 644 ../man/xpi-unpack.1 $(DESTDIR)$(MANDIR)/man1/xpi-unpack.1 |