diff options
Diffstat (limited to 'trunk/scripts/makerpm.sh')
-rwxr-xr-x | trunk/scripts/makerpm.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/trunk/scripts/makerpm.sh b/trunk/scripts/makerpm.sh new file mode 100755 index 000000000..bfa2b47f0 --- /dev/null +++ b/trunk/scripts/makerpm.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +PWD=`pwd` + +## If we're not in the scripts directory +## assume the base directory. +if test "`basename $PWD`" != "scripts"; then + MYOLDPWD=`pwd` + cd `dirname $0` +fi + +./makedist.sh + +rpmbuild -bb mpd.spec + +if test $? -eq 0; then + echo 'Your RPM should be ready now' +else + echo 'Something went wrong when building your RPM' +fi + +if test -f ../mpd-?.??.?.tar.gz; +then + rm ../mpd-?.??.?.tar.gz +fi + +if test "`basename $PWD`" != "scripts"; then + cd $MYOLDPWD +fi |