aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/scripts/makedist.sh
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-28 13:09:41 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-28 13:09:41 +0000
commit6e5c90e098005b66f86a9fd99a26956cbaa0c392 (patch)
treed5699855fe945b0b02e511c87def301d119ae922 /trunk/scripts/makedist.sh
parent28c7a91d2462128a7df9a417cbbd59cad89ba19b (diff)
downloadmpd-6e5c90e098005b66f86a9fd99a26956cbaa0c392.tar.gz
mpd-6e5c90e098005b66f86a9fd99a26956cbaa0c392.tar.xz
mpd-6e5c90e098005b66f86a9fd99a26956cbaa0c392.zip
Re-tagging 0.13.0 release to fix a couple of bugs with the tarball.
git-svn-id: https://svn.musicpd.org/mpd/tags/release-0.13.0@6325 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rwxr-xr-xtrunk/scripts/makedist.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/trunk/scripts/makedist.sh b/trunk/scripts/makedist.sh
new file mode 100755
index 000000000..d342cea3a
--- /dev/null
+++ b/trunk/scripts/makedist.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+PWD=`pwd`
+
+## If we're not in the scripts directory
+## assume the base directory.
+if test "`basename $PWD`" == "scripts"; then
+ cd ../
+else
+ MYOLDPWD=`pwd`
+ cd `dirname $0`/../
+fi
+
+if test -e Makefile
+then
+ make distclean
+fi
+./autogen.sh
+make
+make dist
+
+if test "`basename $PWD`" == "scripts"; then
+ cd contrib/
+else
+ cd $MYOLDPWD
+fi