summaryrefslogtreecommitdiff
path: root/src/med-xpi-pack
diff options
context:
space:
mode:
Diffstat (limited to 'src/med-xpi-pack')
-rwxr-xr-xsrc/med-xpi-pack4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/med-xpi-pack b/src/med-xpi-pack
index 56b6039..0e3d8ec 100755
--- a/src/med-xpi-pack
+++ b/src/med-xpi-pack
@@ -70,7 +70,9 @@ for JAR_DIR in `find . -type d -name *.jar\!` ; do
done;
echo "Packing $XPIFILE";
zip -q -r $START_DIR/$XPIFILE * -x debian/\* temp-*/\*;
-echo "Packed XPI file."; #It is located in $START_DIR";
+[ -f $START_DIR/$XPIFILE ] && XPIDIR=`dirname $START_DIR/$XPIFILE`
+ABS_XPIDIR=`cd $XPIDIR; pwd`;
+echo "Packed XPI file. It is located in $ABS_XPIDIR";
for JAR_PATH in `find . -name *.jar` ; do
echo "Unpacking $JAR_PATH";
unzip -q $JAR_PATH -d $JAR_PATH!;