summaryrefslogtreecommitdiff
path: root/src/med-xpi-pack
diff options
context:
space:
mode:
Diffstat (limited to 'src/med-xpi-pack')
-rwxr-xr-xsrc/med-xpi-pack20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/med-xpi-pack b/src/med-xpi-pack
index 9d3e433..8abfb69 100755
--- a/src/med-xpi-pack
+++ b/src/med-xpi-pack
@@ -27,31 +27,37 @@ INDIR=$1;
XPIFILE=$2;
usage() {
- echo "med-xpi-pack - Script to produce XPI file from input directory.\n";
+ echo "med-xpi-pack - Script to produce XPI file from input directory."
+ echo
echo "The output XPI file is placed in top-level of the input directory.";
echo "To place it somewhere else, provide relative or absolute path to the";
- echo "output XPI file.\n"
+ echo "output XPI file."
+ echo
echo "To run it call:";
- echo "$ med-xpi-pack input_directory output_xpi_file\n";
+ echo "$ med-xpi-pack input_directory output_xpi_file"
+ echo
echo " input_directory - directory with the XPI source tree";
echo " output_xpi_file - name of the produced file";
exit 1;
}
if [ "$1" = "--help" -o "$1" = "-h" ] ; then
- usage;
+ usage
fi;
if [ -z $INDIR ] ; then
- echo "Missing input directory.\n";
+ echo "Missing input directory."
+ echo
usage;
fi;
if [ -z $XPIFILE ] ; then
- echo "Missing XPI name.\n";
+ echo "Missing XPI name."
+ echo
usage;
fi;
if [ ! -d $INDIR ] ; then
- echo "E: Input directory doesn't exist.\n";
+ echo "E: Input directory doesn't exist."
+ echo
usage;
fi;