Permalink
Browse files

Put output in "dist" directory instead of homedir.

  • Loading branch information...
1 parent 929d56a commit 444faba4e82f36b609578cb8b6a24a3ecb969558 @n1mmy n1mmy committed Feb 28, 2012
Showing with 9 additions and 8 deletions.
  1. +1 −0 .gitignore
  2. +8 −8 admin/build-release.sh
View
@@ -2,3 +2,4 @@
*~
/dev_bundle
/dev_bundle*.tar.gz
+/dist
View
@@ -24,15 +24,18 @@ mkdir -p "$PREFIX"
VERSION="$($PREFIX/bin/meteor --version | sed 's/.* //')"
# tar it up
-TARBALL=~/meteor-package-${UNAME}-${ARCH}-${VERSION}.tar.gz
+OUTDIR="$TOPDIR/dist"
+rm -rf "$OUTDIR"
+mkdir -p "$OUTDIR"
+TARBALL="$OUTDIR/meteor-package-${UNAME}-${ARCH}-${VERSION}.tar.gz"
echo "Tarring to: $TARBALL"
tar -C "$PREFIX" --exclude .meteor/local -czf "$TARBALL" meteor
if [ "$UNAME" == "Linux" ] ; then
echo "Building debian package"
- DEBDIR="TMPDIR/debian"
+ DEBDIR="$TMPDIR/debian"
mkdir "$DEBDIR"
cd "$DEBDIR"
cp "$TARBALL" "meteor_${VERSION}.orig.tar.gz"
@@ -41,16 +44,13 @@ if [ "$UNAME" == "Linux" ] ; then
cp -r "$TOPDIR/admin/debian" .
export TARBALL
dpkg-buildpackage
-
- # XXX!
- cp ../*.deb ~
+ cp ../*.deb "$OUTDIR"
echo "Building RPM"
- # XXX how to set rpm build dir to not be ~/rpmbuild
rpmbuild -bb --define="TARBALL $TARBALL" "$TOPDIR/admin/meteor.spec"
- # XXX
- cp ~/rpmbuild/RPMS/*/*.rpm ~
+ # XXX how to set rpm build dir to not be ~/rpmbuild
+ cp ~/rpmbuild/RPMS/*/*.rpm "$OUTDIR"
fi

0 comments on commit 444faba

Please sign in to comment.