Permalink
Browse files

Packaging fussing

  • Loading branch information...
1 parent cc185ab commit 99ad30fea77f4351e934b28722d31598efe3522c @paulhammond committed Mar 9, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 { → pkg}/package.sh
@@ -13,12 +13,12 @@ VERSION=${1:-"dev"}
for DEST in linux-386 linux-amd64 darwin-amd64; do
OS=${DEST%-*}
ARCH=${DEST#*-}
- DIR=pkg/$DEST/jp-$VERSION
+ DIR=pkg/build/$DEST/jp-$VERSION
mkdir -p $DIR
cp README.md $DIR
cp LICENSE.txt $DIR
GOOS=$OS GOARCH=$ARCH go build -o $DIR/jp github.com/paulhammond/jp/jp
- cd pkg/$DEST
- tar -czf ../jp-${VERSION}-${OS}-${ARCH}.tgz jp-$VERSION
- cd ../..
+ cd pkg/build/$DEST
+ tar -czf ../../jp-${VERSION}-${OS}-${ARCH}.tgz jp-$VERSION
+ cd ../../..
done

0 comments on commit 99ad30f

Please sign in to comment.