diff options
author | wlemb <wlemb> | 2003-01-28 08:29:26 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2003-01-28 08:29:26 +0000 |
commit | 61db599eb999f38f54c3e5f260b9d8437f393ae5 (patch) | |
tree | 5b358b7743007fa42948c5b3c264588cd0a2fd31 /src/utils/indxbib | |
parent | 0354cdb0e9405e4087f496294a857111cb19d330 (diff) | |
download | groff-61db599eb999f38f54c3e5f260b9d8437f393ae5.tar.gz |
* src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
`access' before calling `unlink'.
(do_file): Handle __EMX__.
* src/include/nonposix.h: Handle __EMX__.
* Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
(fontpath,tmacpath): Use it.
* src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
@PATH_SEPARATOR@.
Diffstat (limited to 'src/utils/indxbib')
-rw-r--r-- | src/utils/indxbib/indxbib.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/indxbib/indxbib.cc b/src/utils/indxbib/indxbib.cc index bd10772c..5c8651a4 100644 --- a/src/utils/indxbib/indxbib.cc +++ b/src/utils/indxbib/indxbib.cc @@ -287,7 +287,8 @@ int main(int argc, char **argv) strcat(index_file, INDEX_SUFFIX); #ifdef HAVE_RENAME #ifdef __EMX__ - unlink(index_file); + if (access(index_file, R_OK) == 0) + unlink(index_file); #endif /* __EMX__ */ if (rename(temp_index_file, index_file) < 0) { #ifdef __MSDOS__ @@ -494,7 +495,7 @@ static int do_file(const char *filename) else ungetc(peek, fp); } -#if defined(__MSDOS__) || defined(_MSC_VER) +#if defined(__MSDOS__) || defined(_MSC_VER) || defined(__EMX__) else if (c == 0x1a) // ^Z means EOF in text files break; #endif |