From 7a381fbd65066664ff04b32c99819377e72fcdeb Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 18 Jul 2011 13:42:53 +0200 Subject: [PATCH] More verbose rpmbuild setup script --- id-rpm-build/id-setup-rpmbuild.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/id-rpm-build/id-setup-rpmbuild.sh b/id-rpm-build/id-setup-rpmbuild.sh index 52376a2..0cba257 100755 --- a/id-rpm-build/id-setup-rpmbuild.sh +++ b/id-rpm-build/id-setup-rpmbuild.sh @@ -4,12 +4,15 @@ cd $HOME if test -f .rpmmacros; then echo ".rpmmacros already exist" - exit 1 +else + echo "creating .rpmmacros" + echo "%_topdir $HOME/rpmbuild" >.rpmmacros +fi +if test ! -d rpmbuild; then + mkdir -p rpmbuild/BUILD + mkdir -p rpmbuild/RPMS/noarch + mkdir -p rpmbuild/RPMS/x86_64 + mkdir -p rpmbuild/SOURCES + mkdir -p rpmbuild/SPECS + mkdir -p rpmbuild/SRPMS fi -echo "%_topdir $HOME/rpmbuild" >.rpmmacros -mkdir -p rpmbuild/BUILD -mkdir -p rpmbuild/RPMS/noarch -mkdir -p rpmbuild/RPMS/x86_64 -mkdir -p rpmbuild/SOURCES -mkdir -p rpmbuild/SPECS -mkdir -p rpmbuild/SRPMS -- 1.7.10.4