summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSasa Bodiroza <jazzva@gmail.com>2008-07-24 11:04:06 +0000
committerSasa Bodiroza <jazzva@gmail.com>2008-07-24 11:04:06 +0000
commit262467fe839674d3196d80f7db5b77708b8128f3 (patch)
treeea9363ed2e555ba921e374e12c3d7fc8ee5d536a
parenta3125c5b22770211b05009fc81d4adf78e5c69c7 (diff)
* Fix output dir detection in 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!;