diff options
Diffstat (limited to 'Build-tools/Do-rpm')
-rwxr-xr-x | Build-tools/Do-rpm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Build-tools/Do-rpm b/Build-tools/Do-rpm index 6ce8c9c3e45..92d47a8b871 100755 --- a/Build-tools/Do-rpm +++ b/Build-tools/Do-rpm @@ -40,7 +40,21 @@ owner=my # Hard path!! bpath=`/bin/pwd` -rpmdir="/usr/src/redhat" + +for d in /usr/src/redhat /usr/src/packages ; do +if test -d "$d" +then + rpmdir=$d +fi +done + +if test -z "$rpmdir" +then + echo "Could not find suitable rpmdir on this system" + exit 1 +fi + + logdir="$bpath/Logs" ###### Perl STUFF ##### |