5 if [ "$VERSION" == "" ] ; then
6 echo buildscript project version
9 # if (You need to have a rpmbuild directory - Adam has a script in git-tools )
10 # (You need to have .rpmmacros - edit it to point to your rpmbuild)
11 if cd ~/rpmbuild/SOURCES ; then
12 if tar xzf $PROJECT-$VERSION.$TYPE ; then
14 if rpmbuild -ba $PROJECT.spec ; then
15 echo success. Do upload, and update repo
17 echo failed to rpmbuild $PROJECT
21 echo failed tar xzf $PROJECT-$VERSION.tgz