summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSasa Bodiroza <jazzva@gmail.com>2009-10-21 20:01:09 +0200
committerSasa Bodiroza <jazzva@gmail.com>2009-10-21 20:01:09 +0200
commit0ea6f2a275bfc7713c9844943e420dc0a5b03401 (patch)
tree1464c9f265cc38aff73d7dd842496e2dcb4edf8d /src
parentab2c13c811cd033666a3dded8b2d0a95316336c6 (diff)
* med-xpi-pack:
- Keep track of produced jar files and remove them only after the build of xpi file (LP: #452422) (Closes: #551065)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/med-xpi-pack6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/med-xpi-pack b/src/med-xpi-pack
index 8abfb69..f23b7b2 100755
--- a/src/med-xpi-pack
+++ b/src/med-xpi-pack
@@ -62,6 +62,7 @@ if [ ! -d $INDIR ] ; then
fi;
START_DIR=`pwd`;
+PACK_JAR_PATHS="";
cd $INDIR;
for JAR_DIR in `find . -type d -name *.jar\!` ; do
JAR_FILE=`echo $JAR_DIR | sed "s/jar\!$/jar/"`;
@@ -72,6 +73,7 @@ for JAR_DIR in `find . -type d -name *.jar\!` ; do
echo "Packing $JAR_FILE";
zip -q -r $ABS_JAR_FILE .;
cd $ABS_CUR_DIR;
+ PACK_JAR_PATHS="$ABS_JAR_FILE $PACK_JAR_PATHS";
rm -rf $ABS_JAR_PATH;
done;
echo "Packing $XPIFILE";
@@ -79,8 +81,8 @@ zip -q -r $START_DIR/$XPIFILE * -x debian/\* temp-*/\*;
[ -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";
+for JAR_PATH in $PACK_JAR_PATHS ; do
+ echo "Unpacking and removing $JAR_PATH";
unzip -q $JAR_PATH -d $JAR_PATH!;
rm -f $JAR_PATH;
done;