Skip to content

Commit ae4600c

Browse files
committed
Use dkg's approach but keep the pkg/ directory
(I like to keep a stack of old builds around and not have everything cluttered)
1 parent 973bf50 commit ae4600c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
%:
55
./makexpi.sh $@
66
# this makes prerelease xpis (and is the default rule)
7-
prerelease:
7+
prerelease: pkg
88
./makexpi.sh
9+
pkg:
10+
mkdir pkg
911
clean:
10-
rm -f *.xpi
12+
rm -f pkg/*.xpi
1113

1214
.PHONY: clean prerelease

makexpi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else
2222
VERSION="$(grep em:version src/install.rdf | sed -e 's/[<>]/ /g' | cut -f3)~pre"
2323
TARG=HEAD
2424
fi
25-
XPI_NAME="$APP_NAME-$VERSION.xpi"
25+
XPI_NAME="pkg/$APP_NAME-$VERSION.xpi"
2626

2727
cd "$(dirname $0)/src"
2828
git archive --format=zip -9 "$TARG" . > "../$XPI_NAME"

0 commit comments

Comments
 (0)