On Wednesday 16 July 2003 19:54, Joe Morris (NTM) wrote:
I am not a script expert either, but I believe these rpm commands are your problem. I believe rpmbuild is a RH thing, suse uses rpm, but of the above, only --clean is mentioned as an argument in the build section of the man page, so I don't know what you would need to do to get SuSE's rpm to do the same. HTH.
lol...me neither..I can do it by hand following SuSE docs no probs but I was hoping to automate this. There are several issues as you point out with the later part of script and it barfs at line 41. See below; files=$(ls SRPMS/$i*)
if [ ! -f "$files" ]; then rpmbuild --define "_topdir `pwd`" \ <<<<<<-------line41 --define "_rpmdir `pwd`/NEWRPMS" \ --define 'debug_package %{nil}' \ --clean -ba SPECS/$i.spec || exit 10; fi sudo rpm -Uvh NEWRPMS/i386/*.rpm --force && mv NEWRPMS/i386/*.rpm RPMS
|| :;
done 2>&1 | tee compile.log
Sure hoping to get this sorted. Thanks Joe...If anyone else wants to chime it it would be greatly appreciated and rpms will be made available. /ch