diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-20 16:23:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-20 16:23:27 +0000 |
commit | b7a58b06502d4ddceff9b1cfc0f9e62381442b6b (patch) | |
tree | 8ff73e29c7355e30669f84a9340270ee18d5a6e6 | |
parent | 5a4187f2c28b1025d47a85b7728509a1b907eda0 (diff) | |
download | ruby-b7a58b06502d4ddceff9b1cfc0f9e62381442b6b.tar.gz |
* lib/mkmf.rb (with_destdir): new.
* lib/mkmf.rb: prefix target directories with $(DESTDIR) all.
* lib/mkmf.rb: no need to mkdir $(libdir)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | lib/mkmf.rb | 22 | ||||
-rw-r--r-- | version.h | 4 |
3 files changed, 23 insertions, 11 deletions
@@ -1,3 +1,11 @@ +Fri Dec 21 01:17:57 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> + + * lib/mkmf.rb (with_destdir): new. + + * lib/mkmf.rb: prefix target directories with $(DESTDIR) all. + + * lib/mkmf.rb: no need to mkdir $(libdir) + Thu Dec 20 14:08:20 2001 Minero Aoki <aamine@loveruby.net> * lib/net/protocol.rb: rename Net::Socket to Net::BufferedSocket diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 47d468d2f1..fb6253b3f5 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -364,6 +364,10 @@ def dir_config(target, idefault=nil, ldefault=nil) [idir, ldir] end +def with_destdir(dir) + /^\$[\(\{]/ =~ dir ? dir : "$(DESTDIR)"+dir +end + def create_makefile(target, srcdir = File.dirname($0)) save_libs = $libs.dup save_libpath = $LIBPATH.dup @@ -455,14 +459,14 @@ else "" end } -prefix = $(DESTDIR)#{CONFIG["prefix"].sub(drive, '')} -exec_prefix = #{CONFIG["exec_prefix"].sub(drive, '')} -libdir = #{$libdir.sub(drive, '')} -rubylibdir = #{$rubylibdir.sub(drive, '')} -archdir = #{$archdir.sub(drive, '')} -sitedir = #{$sitedir.sub(drive, '')} -sitelibdir = #{$sitelibdir.sub(drive, '')} -sitearchdir = #{$sitearchdir.sub(drive, '')} +prefix = #{with_destdir CONFIG["prefix"].sub(drive, '')} +exec_prefix = #{with_destdir CONFIG["exec_prefix"].sub(drive, '')} +libdir = #{with_destdir $libdir.sub(drive, '')} +rubylibdir = #{with_destdir $rubylibdir.sub(drive, '')} +archdir = #{with_destdir $archdir.sub(drive, '')} +sitedir = #{with_destdir $sitedir.sub(drive, '')} +sitelibdir = #{with_destdir $sitelibdir.sub(drive, '')} +sitearchdir = #{with_destdir $sitearchdir.sub(drive, '')} target_prefix = #{target_prefix} #### End of system configuration section. #### @@ -503,7 +507,7 @@ EOMF mfile.printf <<EOMF $(sitearchdir)$(target_prefix)/$(DLLIB): $(DLLIB) - @$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(libdir) $(sitearchdir)$(target_prefix) + @$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(sitearchdir)$(target_prefix) @$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0555, true)' $(DLLIB) $(sitearchdir)$(target_prefix)/$(DLLIB) EOMF install_rb(mfile, "$(sitelibdir)$(target_prefix)", srcdir) @@ -1,4 +1,4 @@ #define RUBY_VERSION "1.7.2" -#define RUBY_RELEASE_DATE "2001-12-19" +#define RUBY_RELEASE_DATE "2001-12-20" #define RUBY_VERSION_CODE 172 -#define RUBY_RELEASE_CODE 20011219 +#define RUBY_RELEASE_CODE 20011220 |