summaryrefslogtreecommitdiff
path: root/Build-tools/Do-rpm
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2002-02-16 11:32:06 -0700
committerunknown <sasha@mysql.sashanet.com>2002-02-16 11:32:06 -0700
commit4e806126da2b0da495ba45899a15b0289384bdc3 (patch)
tree11aa4f519717228eb4e5fcb3392004bb25fa677b /Build-tools/Do-rpm
parent9f7fe921c417a1888bac6d6a0c3ba69125afb845 (diff)
downloadmariadb-git-4e806126da2b0da495ba45899a15b0289384bdc3.tar.gz
updated build scripts for new Linux build
Build-tools/Do-all-build-steps: pass parameters to Do-rpm Build-tools/Do-compile: with-other-libc option Build-tools/Do-rpm: make it "automagically" work on SuSE as well as RedHat strings/Makefile.am: added t_ctype.h to the distribution for now - permanent fix to come later support-files/mysql.spec.sh: changed build to use --with-other-libc
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 046ba93a1dd..815eda86009 100755
--- a/Build-tools/Do-rpm
+++ b/Build-tools/Do-rpm
@@ -38,7 +38,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 #####