diff options
author | unknown <lenz@mysql.com> | 2003-08-19 13:49:53 +0200 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2003-08-19 13:49:53 +0200 |
commit | 9194f5ef335947077a53d054e2dd41b237fb5d23 (patch) | |
tree | 44de0193743fb91d52739026aa9fd818e10933ff /Build-tools/Bootstrap | |
parent | 01441bc590e936b19d3fed293577f6bee07bfbac (diff) | |
download | mariadb-git-9194f5ef335947077a53d054e2dd41b237fb5d23.tar.gz |
- 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)
Diffstat (limited to 'Build-tools/Bootstrap')
-rwxr-xr-x | Build-tools/Bootstrap | 11 |
1 files changed, 5 insertions, 6 deletions
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 <lenz@mysql.com> # +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; } } } |