From c454122a021d705c5ddfa74913d53c18aa078ecb Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Sat, 22 Jul 2006 22:01:05 +0000 Subject: - 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 --- scripts/makerpm.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 scripts/makerpm.sh (limited to 'scripts/makerpm.sh') diff --git a/scripts/makerpm.sh b/scripts/makerpm.sh new file mode 100755 index 000000000..52104c8af --- /dev/null +++ b/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" && \ + test -d scripts; then + cd scripts +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 .. +fi -- cgit v1.2.3