diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-28 05:29:11 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-28 05:29:11 -0500 |
commit | 9b3ec5b76bf662dd022e64e6115d3d463673f88c (patch) | |
tree | eae3438503cee59fa5184bb67c137bc7ba8de35e | |
parent | 0f6f7f161042fbba7e2436eb361321f954794c19 (diff) | |
download | pentadactyl-9b3ec5b76bf662dd022e64e6115d3d463673f88c.tar.gz |
Make building an XPI with spaces in its name possible.
-rw-r--r-- | common/Makefile | 7 | ||||
-rw-r--r-- | common/make_jar.sh | 10 |
2 files changed, 8 insertions, 9 deletions
diff --git a/common/Makefile b/common/Makefile index 9e7169e8..2c263220 100644 --- a/common/Makefile +++ b/common/Makefile @@ -47,7 +47,7 @@ AWK ?= awk B64ENCODE ?= base64 CURL ?= curl -#.SILENT: +.SILENT: #### rules @@ -84,7 +84,6 @@ info: @echo "doc files $(DOC_FILES)" @echo "xpi files $(XPI_FILES)" -xpi: $(XPI) jar: $(JAR) release: $(XPI) $(RDF) @@ -169,7 +168,7 @@ test: $(XPI) #### xpi -$(XPI): $(CHROME) +xpi: $(CHROME) @echo "Building XPI..." mkdir -p $(XPI_PATH) @@ -179,7 +178,7 @@ $(XPI): $(CHROME) $(MAKE_JAR) "$(XPI)" "$(XPI_BASES)" "$(XPI_DIRS)" "$(XPI_TEXTS)" "$(XPI_BINS)" "$(XPI_FILES)" rm -r -- $(CHROME) - @echo "Built XPI: $@" + @echo "Built XPI: $XPI" #### jar diff --git a/common/make_jar.sh b/common/make_jar.sh index f12b5ee7..a84aad83 100644 --- a/common/make_jar.sh +++ b/common/make_jar.sh @@ -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 |