summaryrefslogtreecommitdiff
path: root/Build-tools/Do-rpm
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2002-03-01 19:36:46 -0700
committersasha@mysql.sashanet.com <>2002-03-01 19:36:46 -0700
commitaa67831207689d9f4c2579508f8c0b9fd91135b7 (patch)
treedd5cbc9c1cf52f454bd88e24e1401696ae7da26c /Build-tools/Do-rpm
parentfdb0e646cd9c1267dc83871e50bdc03875ec3636 (diff)
parent8c01c96f90c3d017864c34c55a75a10514be00f9 (diff)
downloadmariadb-git-aa67831207689d9f4c2579508f8c0b9fd91135b7.tar.gz
merged from 3.23 to pull the LOAD DATA INFILE fix as rpl000001 was failing.
Let's hope this did not break anything. Will not push this one until Monty gets back
Diffstat (limited to 'Build-tools/Do-rpm')
-rwxr-xr-xBuild-tools/Do-rpm16
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 #####