diff options
author | Lukas Larsson <[email protected]> | 2010-11-12 11:28:40 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2010-11-29 11:59:34 +0100 |
commit | 451991730f405db085cc69fafd14b07ca3879458 (patch) | |
tree | 96b0286c7d5686dcc5e716a4827be279e8f582b2 /erts/etc/win32 | |
parent | 14d2033ce29ebd2761026194682f5480576edb6d (diff) | |
download | otp-451991730f405db085cc69fafd14b07ca3879458.tar.gz otp-451991730f405db085cc69fafd14b07ca3879458.tar.bz2 otp-451991730f405db085cc69fafd14b07ca3879458.zip |
Update make and install files to use ct_run instead of run_test and to keep a link to run_test available
Diffstat (limited to 'erts/etc/win32')
-rw-r--r-- | erts/etc/win32/Install.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/erts/etc/win32/Install.c b/erts/etc/win32/Install.c index ca814e3f80..6e60512f6d 100644 --- a/erts/etc/win32/Install.c +++ b/erts/etc/win32/Install.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) HANDLE module = GetModuleHandle(NULL); char *binaries[] = { "erl.exe", "werl.exe", "erlc.exe", "dialyzer.exe", "typer.exe", - "escript.exe", "run_test.exe", NULL }; + "escript.exe", "ct_run.exe", NULL }; char *scripts[] = { "start_clean.boot", "start_sasl.boot", NULL }; char fromname[MAX_PATH]; char toname[MAX_PATH]; @@ -172,6 +172,20 @@ int main(int argc, char **argv) } } + // Remove in R16B + sprintf(fromname,"%s\\%s",bin_dir,"ct_run.exe"); + sprintf(toname,"%s\\%s",bin_dir,"run_test.exe"); + if (GetFileAttributes(fromname) == 0xFFFFFFFF) { + fprintf(stderr,"Could not find file %s\n", + fromname); + exit(1); + } + if (!CopyFile(fromname,toname,FALSE)) { + fprintf(stderr,"Could not copy file %s to %s\n", + fromname,toname); + fprintf(stderr,"Continuing installation anyway...\n"); + } + for (i = 0; scripts[i] != NULL; ++i) { sprintf(fromname,"%s\\%s",release_dir,scripts[i]); sprintf(toname,"%s\\%s",bin_dir,scripts[i]); |