Initial revision 6759
[qball-mpd.git] / scripts / .svn / text-base / makerpm.sh.svn-base
blobbfa2b47f02b92acdcc383dab7eb46af740046045
1 #!/bin/bash
3 PWD=`pwd`
5 ## If we're not in the scripts directory
6 ## assume the base directory.
7 if test "`basename $PWD`" != "scripts"; then
8 MYOLDPWD=`pwd`
9 cd `dirname $0`
12 ./makedist.sh
14 rpmbuild -bb mpd.spec
16 if test $? -eq 0; then
17 echo 'Your RPM should be ready now'
18 else
19 echo 'Something went wrong when building your RPM'
22 if test -f ../mpd-?.??.?.tar.gz;
23 then
24 rm ../mpd-?.??.?.tar.gz
27 if test "`basename $PWD`" != "scripts"; then
28 cd $MYOLDPWD