| 8 |
|
#include "standard.h" |
| 9 |
|
|
| 10 |
|
#include <ctype.h> |
| 11 |
+ |
#include <time.h> |
| 12 |
|
|
| 13 |
|
#include "platform.h" |
| 14 |
|
#include "view.h" |
| 15 |
|
#include "paths.h" |
| 16 |
|
#include "vars.h" |
| 17 |
|
|
| 18 |
+ |
#ifdef _WIN32 |
| 19 |
+ |
#define DELCMD "del" |
| 20 |
+ |
#define RENAMECMD "rename" |
| 21 |
+ |
#else |
| 22 |
+ |
#define DELCMD "rm -f" |
| 23 |
+ |
#define RENAMECMD "mv" |
| 24 |
+ |
#endif |
| 25 |
+ |
|
| 26 |
|
/* variables (alphabetical by name) */ |
| 27 |
|
#define AMBFILE 0 /* ambient file name */ |
| 28 |
|
#define DETAIL 1 /* level of scene detail */ |
| 89 |
|
char overfile[] = "overture.unf"; |
| 90 |
|
#endif |
| 91 |
|
|
| 83 |
– |
extern time_t time(); |
| 92 |
|
|
| 93 |
|
time_t scenedate; /* date of latest scene or object file */ |
| 94 |
|
time_t octreedate; /* date of octree */ |
| 1314 |
|
char *fn; |
| 1315 |
|
{ |
| 1316 |
|
if (!silent) |
| 1317 |
< |
#ifdef _WIN32 |
| 1310 |
< |
printf("\tdel %s\n", fn); |
| 1311 |
< |
#else |
| 1312 |
< |
printf("\trm -f %s\n", fn); |
| 1313 |
< |
#endif |
| 1317 |
> |
printf("\t%s %s\n", DELCMD, fn); |
| 1318 |
|
if (!nprocs) |
| 1319 |
|
return(0); |
| 1320 |
|
return(unlink(fn)); |
| 1325 |
|
char *fold, *fnew; |
| 1326 |
|
{ |
| 1327 |
|
if (!silent) |
| 1328 |
< |
#ifdef _WIN32 |
| 1325 |
< |
printf("\trename %s %s\n", fold, fnew); |
| 1326 |
< |
#else |
| 1327 |
< |
printf("\tmv %s %s\n", fold, fnew); |
| 1328 |
< |
#endif |
| 1328 |
> |
printf("\t%s %s %s\n", RENAMECMD, fold, fnew); |
| 1329 |
|
if (!nprocs) |
| 1330 |
|
return(0); |
| 1331 |
|
return(rename(fold, fnew)); |
| 1398 |
|
int all; |
| 1399 |
|
{ |
| 1400 |
|
(void)all; /* no one to wait for */ |
| 1401 |
+ |
} |
| 1402 |
+ |
int |
| 1403 |
+ |
kill(pid, sig) /* win|unix_process.c should also wait and kill */ |
| 1404 |
+ |
int pid, sig; |
| 1405 |
+ |
{ |
| 1406 |
+ |
return 0; |
| 1407 |
|
} |
| 1408 |
|
#endif /* ! RHAS_FORK_EXEC */ |
| 1409 |
|
|