cowbel / mkdist

# $Id: mkdist 149 2008-11-03 18:51:28Z dtrg $
# $HeadURL: $
# $LastChangedDate: 2007-10-05 00:12:15 +0100 (Fri, 05 Oct 2007) $
# Script to build a distribution package.

set -e

if [ "$1" = "" ]; then
	echo "Please specify a version number!"
	exit 1

if [ -d ../$PACKAGE-$1 ]; then
	echo "I think you've already generated version $1."
	exit 1

mkdir ../$PACKAGE-$1
cp -a --parents \
	./build.xml \
	./cowbel \
	./run-tests \
	./src \
	./include \
	./test \
	./samples \

(cd .. && tar cvaf $PACKAGE-$1.tar.bz2 $PACKAGE-$1) && rm -rf ../$PACKAGE-$1

echo ""
echo "Done --- but did you remember to update the version number in the README?"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.