aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/makedist.sh
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2006-07-22 22:01:05 +0000
committerAvuton Olrich <avuton@gmail.com>2006-07-22 22:01:05 +0000
commitc454122a021d705c5ddfa74913d53c18aa078ecb (patch)
tree1b93e7584ad9003ef678b32092d932b8b903a763 /scripts/makedist.sh
parent6dfaa33f376f81fb9650d39a03ca57a46b9aec5a (diff)
downloadmpd-c454122a021d705c5ddfa74913d53c18aa078ecb.tar.gz
mpd-c454122a021d705c5ddfa74913d53c18aa078ecb.tar.xz
mpd-c454122a021d705c5ddfa74913d53c18aa078ecb.zip
- Add a 'scripts' directory, remove scripts from
docs/ & base directory - Add a spec file (my first try, please report problems) git-svn-id: https://svn.musicpd.org/mpd/trunk@4429 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'scripts/makedist.sh')
-rwxr-xr-xscripts/makedist.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/makedist.sh b/scripts/makedist.sh
new file mode 100755
index 000000000..dca64d216
--- /dev/null
+++ b/scripts/makedist.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+PWD=`pwd`
+
+## If we're not in the scripts directory
+## assume the base directory.
+if test "`basename $PWD`" == "scripts"; then
+ cd ../
+fi
+
+if test -e Makefile
+then
+ make distclean
+fi
+./autogen.sh
+make
+make dist
+
+if test "`basename $PWD`" == "scripts"; then
+ cd contrib/
+fi