SPECFILE=""
BE_VERBOSE=""
QUIET=""
+CLEAN=""
CVSROOT=${CVSROOT:-""}
LOGFILE=""
-a, --as_anon - get files via pserver as cvs@cvs.pld.org.pl,
-b, --build - get all files from CVS repo and build
package from <package>.spec,
+ -c, --clean - clean all temporary maked files (in BUILD,
+ SOURCES, SPECS and $RPM_BUILD_ROOT),
-d, --cvsroot - setup \$CVSROOT,
-g, --get - get <package>.spec and all relayted files from
CVS repo,
build_package()
{
cd $SPECS_DIR
- rpm -ba -v $QUIET $SPECFILE
+ rpm -ba -v $QUIET $CLEAN $SPECFILE
if [ "$?" -ne "0" ]; then
Exit_error err_build_fail;
CVSROOT=":pserver:cvs@cvs.pld.org.pl:/cvsroot"; shift ;;
-b | --build )
COMMAND="build"; shift ;;
+ -c | --clean )
+ CLEAN="--clean --rmspec --rmsource"; shift ;;
-d | --cvsroot )
shift; CVSROOT="${1}"; shift ;;
-g | --get )