summaryrefslogtreecommitdiff
path: root/src/med-xpi-unpack
diff options
context:
space:
mode:
Diffstat (limited to 'src/med-xpi-unpack')
-rwxr-xr-xsrc/med-xpi-unpack26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/med-xpi-unpack b/src/med-xpi-unpack
index 778e4b5..a487582 100755
--- a/src/med-xpi-unpack
+++ b/src/med-xpi-unpack
@@ -25,9 +25,11 @@ XPIFILE=$1;
OUTDIR=$2;
usage() {
- echo "med-xpi-unpack - Script to unpack XPI file to output directory.\n";
+ echo "med-xpi-unpack - Script to unpack XPI file to output directory."
+ echo
echo "To run it call:";
- echo "$ med-xpi-unpack input_xpi_file output_directory\n";
+ echo "$ med-xpi-unpack input_xpi_file output_directory"
+ echo
echo " input_xpi_file - packed XPI source tree";
echo " output_directory - location where the unpacke XPI file is placed";
exit 1;
@@ -38,21 +40,25 @@ if [ "$1" = "--help" -o "$1" = "-h" ] ; then
fi;
if [ -z $XPIFILE ] ; then
- echo "Missing XPI file.\n";
- usage;
+ echo "Missing XPI file."
+ echo
+ usage
fi;
if [ -z $OUTDIR ] ; then
- echo "Missing output directory.\n";
- usage;
+ echo "Missing output directory."
+ echo
+ usage
fi;
if [ -d $OUTDIR ] ; then
- echo "E: Output directory already exists.\n";
- usage;
+ echo "E: Output directory already exists."
+ echo
+ usage
fi;
if [ ! -f $XPIFILE ] ; then
- echo "E: XPI file doesn't exist.\n";
- usage;
+ echo "E: XPI file doesn't exist."
+ echo
+ usage
fi;
mkdir $OUTDIR;