diff options
author | jfieber <jfieber@FreeBSD.org> | 1996-10-01 16:23:39 +0000 |
---|---|---|
committer | jfieber <jfieber@FreeBSD.org> | 1996-10-01 16:23:39 +0000 |
commit | ae0689930a5d91b8afbb67cd396b3b39fb391242 (patch) | |
tree | c1119301af0c9519c30a8012febc97665ef73c81 /usr.bin/sgmlfmt | |
parent | 6a6edabfc3d324722caf01e738fd9dfe9267fc28 (diff) | |
download | FreeBSD-src-ae0689930a5d91b8afbb67cd396b3b39fb391242.zip FreeBSD-src-ae0689930a5d91b8afbb67cd396b3b39fb391242.tar.gz |
When starting HTML generation, remove any pre-existing link file.
Diffstat (limited to 'usr.bin/sgmlfmt')
-rwxr-xr-x | usr.bin/sgmlfmt/sgmlfmt.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/sgmlfmt/sgmlfmt.pl b/usr.bin/sgmlfmt/sgmlfmt.pl index e9ea982..21f43bf 100755 --- a/usr.bin/sgmlfmt/sgmlfmt.pl +++ b/usr.bin/sgmlfmt/sgmlfmt.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $Id: sgmlfmt.pl,v 1.14 1996/09/29 18:27:12 jfieber Exp $ +# $Id: sgmlfmt.pl,v 1.15 1996/09/29 19:42:51 jfieber Exp $ # Copyright (C) 1996 # John R. Fieber. All rights reserved. @@ -231,8 +231,11 @@ $filecount = 0; # file counter sub gen_html { local($i, $sl); - $tmpfile = "/tmp/sgmlf.$$"; + # Remove any lingering link file + unlink("${fileroot}.ln"); + + $tmpfile = "/tmp/sgmlf.$$"; @cleanfiles = (@cleanfiles, "$tmpfile", "${fileroot}.html", "${fileroot}_toc.html", "${fileroot}.ln"); open(bar, ">$tmpfile"); |