Under -t option, temporaries are in the current directory
This commit is contained in:
parent
55bbaa1bf2
commit
e340cea7be
1 changed files with 9 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
||||||
/* $Header$ */
|
/* $Header$ */
|
||||||
|
|
||||||
|
/* Driver program for the global optimizer. It might even become the global
|
||||||
|
optimizer itself one day ...
|
||||||
|
*/
|
||||||
|
|
||||||
#include <em_path.h>
|
#include <em_path.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <system.h>
|
#include <system.h>
|
||||||
|
@ -73,6 +77,7 @@ static int nphase_args;
|
||||||
|
|
||||||
static char *opt_dir;
|
static char *opt_dir;
|
||||||
static char *prog_name;
|
static char *prog_name;
|
||||||
|
static char *tmp_dir = TMP_DIR;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
cleanup()
|
cleanup()
|
||||||
|
@ -287,6 +292,7 @@ main(argc, argv)
|
||||||
case 't':
|
case 't':
|
||||||
if (argv[0][2] == '\0') {
|
if (argv[0][2] == '\0') {
|
||||||
keeptemps = 1;
|
keeptemps = 1;
|
||||||
|
tmp_dir = ".";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -368,14 +374,14 @@ main(argc, argv)
|
||||||
fatal("no correct -P flag given");
|
fatal("no correct -P flag given");
|
||||||
}
|
}
|
||||||
|
|
||||||
(void) strcpy(ddump, TMP_DIR);
|
(void) strcpy(ddump, tmp_dir);
|
||||||
(void) strcat(ddump, "/ego.dd.XXXXXX");
|
(void) strcat(ddump, "/ego.dd.XXXXXX");
|
||||||
(void) mktemp(ddump);
|
(void) mktemp(ddump);
|
||||||
(void) strcpy(pdump, TMP_DIR);
|
(void) strcpy(pdump, tmp_dir);
|
||||||
(void) strcat(pdump, "/ego.pd.XXXXXX");
|
(void) strcat(pdump, "/ego.pd.XXXXXX");
|
||||||
(void) mktemp(pdump);
|
(void) mktemp(pdump);
|
||||||
|
|
||||||
(void) strcpy(tmpbufs[0], TMP_DIR);
|
(void) strcpy(tmpbufs[0], tmp_dir);
|
||||||
(void) strcat(tmpbufs[0], "/ego.A.BB.XXXXXX");
|
(void) strcat(tmpbufs[0], "/ego.A.BB.XXXXXX");
|
||||||
(void) mktemp(tmpbufs[0]);
|
(void) mktemp(tmpbufs[0]);
|
||||||
for (i = 2*NTEMPS-1; i >= 1; i--) {
|
for (i = 2*NTEMPS-1; i >= 1; i--) {
|
||||||
|
|
Loading…
Reference in a new issue