From 9194f5ef335947077a53d054e2dd41b237fb5d23 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 19 Aug 2003 13:49:53 +0200 Subject: - Optimized and cleaned up the Do-rpm and Bootstrap Perl scripts - Enhanced Do-rpm to support building RPMs with different compilers and options Build-tools/Bootstrap: - small optimization (use builtin Perl cwd() function instead of running "pwd" twice) Build-tools/Do-rpm: - added options to handle different compilers and compile flags (e.g. when compiling on IA64 using the Intel ecc compiler) - code cleanups (use more builtin Perl functions instead of forking subrocesses) - don't try to probe various distribution-specific RPM options - query rpm directly instead - Pass the MySQL version as an argument, not an option (as it's not optional anyway) --- Build-tools/Bootstrap | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Build-tools/Bootstrap') diff --git a/Build-tools/Bootstrap b/Build-tools/Bootstrap index 1facf7b5f0d..4a2e6f284f2 100755 --- a/Build-tools/Bootstrap +++ b/Build-tools/Bootstrap @@ -10,6 +10,7 @@ # written by Lenz Grimmer # +use Cwd; use Getopt::Long; Getopt::Long::Configure ("bundling"); @@ -26,10 +27,9 @@ else # Some predefined settings $build_command= "BUILD/compile-pentium-max"; -chomp ($LOGFILE= `pwd`); -$LOGFILE.= "/Bootstrap.log"; -chomp ($opt_directory= `pwd`); -$opt_docdir= $opt_directory . "/mysqldoc"; +$PWD= cwd(); +$LOGFILE= $PWD . "/Bootstrap.log"; +$opt_docdir= $PWD . "/mysqldoc"; $opt_build_command= undef; $opt_changelog= undef; $opt_delete= undef; @@ -82,8 +82,7 @@ if (defined $opt_log) } else { - chomp ($LOGFILE= `pwd`); - $LOGFILE.= "/" . $opt_log; + $LOGFILE= $PWD . "/" . $opt_log; } } } -- cgit v1.2.1