Skip to content
Browse files

Use dkg's approach but keep the pkg/ directory

(I like to keep a stack of old builds around and not have everything
cluttered)
  • Loading branch information...
1 parent 973bf50 commit ae4600cd67d0b97ffb50f1629796641ea4b0211e @pde pde committed Nov 3, 2010
Showing with 5 additions and 3 deletions.
  1. +4 −2 Makefile
  2. +1 −1 makexpi.sh
View
6 Makefile
@@ -4,9 +4,11 @@
%:
./makexpi.sh $@
# this makes prerelease xpis (and is the default rule)
-prerelease:
+prerelease: pkg
./makexpi.sh
+pkg:
+ mkdir pkg
clean:
- rm -f *.xpi
+ rm -f pkg/*.xpi
.PHONY: clean prerelease
View
2 makexpi.sh
@@ -22,7 +22,7 @@ else
VERSION="$(grep em:version src/install.rdf | sed -e 's/[<>]/ /g' | cut -f3)~pre"
TARG=HEAD
fi
-XPI_NAME="$APP_NAME-$VERSION.xpi"
+XPI_NAME="pkg/$APP_NAME-$VERSION.xpi"
cd "$(dirname $0)/src"
git archive --format=zip -9 "$TARG" . > "../$XPI_NAME"

0 comments on commit ae4600c

Please sign in to comment.
Something went wrong with that request. Please try again.