diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-05-24 16:52:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-05-24 16:52:00 +0000 |
commit | 1dd393d047556d9f0275e6e5c31de6aeefc1004d (patch) | |
tree | 36d2736a54d2a2f7af36102fcc4f0865f72d3491 /win32/setup.mak | |
parent | 2ba75fe78c6052d5c3144f76fa264ba464619bbd (diff) | |
download | ruby-1dd393d047556d9f0275e6e5c31de6aeefc1004d.tar.gz ruby-1dd393d047556d9f0275e6e5c31de6aeefc1004d.tar.xz ruby-1dd393d047556d9f0275e6e5c31de6aeefc1004d.zip |
* mkconfig.rb: merge multiple entries to an entry with multiple lines.
* lib/mkmf.rb: allow a series of commands to link.
* win32/Makefile.sub: embed manifests.
* win32/setup.mak: suffix OS name by runtime version.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/setup.mak')
-rw-r--r-- | win32/setup.mak | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/win32/setup.mak b/win32/setup.mak index ab7960090..e066805bd 100644 --- a/win32/setup.mak +++ b/win32/setup.mak @@ -69,7 +69,7 @@ int runtime_name() { char libpath[MAXPATHLEN+1]; - char *p, *base = NULL; + char *p, *base = NULL, *ver = NULL; HMODULE msvcrt = NULL; MEMORY_BASIC_INFORMATION m; @@ -87,9 +87,17 @@ runtime_name() if (!base) return 0; if (p = strchr(base, '.')) *p = '\0'; for (p = base; *p; p = CharNext(p)) { - if (isascii(*p) && isupper(*p)) + if (!isascii(*p)) continue; + if (isupper(*p)) { *p = tolower(*p); + } + if (!isdigit(*p)) { + ver = NULL; + } else if (!ver) { + ver = p; + } } + if (ver) printf("OS = $$(OS)_%s\n", ver); printf("RT = %s\n", base); return 1; } @@ -159,4 +167,5 @@ $(CPU) = $(PROCESSOR_LEVEL) $(BANG)include $$(srcdir)/win32/Makefile.sub << + @$(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat config.h config.status @echo type `$(MAKE)' to make ruby for $(OS). |