1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 13:55:49 +01:00

Make building an XPI with spaces in its name possible.

This commit is contained in:
Kris Maglione
2011-01-28 05:29:11 -05:00
parent 0f6f7f1610
commit 9b3ec5b76b
2 changed files with 8 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
set -e
fromrepo=
if [ $1 = -r ]; then shift; fromrepo=1; fi
if [ "$1" = -r ]; then shift; fromrepo=1; fi
top=$(pwd)
jar=$1
@@ -15,7 +15,7 @@ files="$@"
HG=${HG:-hg}
stage="$top/${jar%.*}"
mkdir -p $stage
mkdir -p "$stage"
sed=$(which sed)
if [ "xoo" = x$(echo foo | sed -E 's/f(o)/\1/' 2>/dev/null) ]
@@ -86,9 +86,9 @@ done
(
set -e;
cd $stage;
case $jar in
(*/) if [ "$stage" != "$jar" ]; then mv -- * $jar; fi;;
cd "$stage";
case "$jar" in
(*/) if [ "$stage" != "$jar" ]; then mv -- * "$jar"; fi;;
(*) zip -9r "$jar" -- *;;
esac
) || exit 1