summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Bobbio <lunar@debian.org>2014-10-03 22:23:41 +0200
committerJérémy Bobbio <lunar@debian.org>2014-10-03 22:27:34 +0200
commitbc9f279909ac9c7e47f2b4599630565fe03230ec (patch)
tree2c941a8e70d9b3c33e18426f4814461e01a00249
parent68a00fcb0c12145defd9889a4e66c36f84ef33dd (diff)
xpi-pack: do not save extra attributes when making jar
There's no need to save extra attributes (uid/gid and file times) when creating the jar files, and it hurts build reproducibility.
-rwxr-xr-xxpi-pack4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpi-pack b/xpi-pack
index 688839c..88c0dd4 100755
--- a/xpi-pack
+++ b/xpi-pack
@@ -71,13 +71,13 @@ for JAR_DIR in `find . -type d -name '*.jar\!'` ; do
ABS_CUR_DIR=`pwd`;
cd $ABS_JAR_PATH;
echo "Packing $JAR_FILE";
- zip -q -r $ABS_JAR_FILE .;
+ zip -q -X -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";
-zip -q -r $START_DIR/$XPIFILE * -x debian/\* temp-*/\*;
+zip -q -X -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";