Skip to content

Commit

Permalink
default to mapbox-dev ppa, require arg for production publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ianshward committed Aug 3, 2011
1 parent 19d79a4 commit 423983b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions platforms/ubuntu/package.sh
@@ -1,8 +1,14 @@
#!/usr/bin/env sh

while getopts ":p" opt; do
case $opt in
p ) PPA="mapbox" ;;
esac
done

PROJECT="tilestream"
USER="developmentseed"
PPA="mapbox"
: ${PPA:="mapbox-dev"}

CWD=`pwd`
VERSION=`grep -m1 "$PROJECT ([0-9.-]*)" debian/changelog | sed "s/$PROJECT (\([0-9.-]*\)).*/\1/g"`
Expand All @@ -21,7 +27,7 @@ fi

while true
do
echo -n "Build $PROJECT-$TAG for $DIST (y/n)? "
echo -n "Build $PROJECT-$TAG for $DIST and upload to $PPA (y/n)? "
read CONFIRM
if [ $CONFIRM = "y" ]; then
break
Expand Down Expand Up @@ -63,4 +69,3 @@ cd "$CWD/$DIST/$PROJECT-$TAG/debian"
debuild -inode_modules\|.git\|.png\|.ttf -S -sa &&
cd "$CWD/$DIST" &&
dput "ppa:$USER/$PPA" "${PROJECT}_${VERSION}_source.changes"

0 comments on commit 423983b

Please sign in to comment.