Skip to content
Snippets Groups Projects
Commit d34bea32 authored by sof's avatar sof
Browse files

[project @ 1998-02-04 20:53:43 by sof]

Avoid use of system() for simple stuff like touching.
parent 40228ff0
No related branches found
No related tags found
No related merge requests found
......@@ -193,16 +193,15 @@ foreach $sf (@Src_files) {
}
# OK, mangle the Makefile
unlink("$Makefile.bak");
#
# If no output file exist as yet, create one.
# Create backup version of output file.
#
if ( ! -f $Makefile.bak ) {
system("touch $Makefile.bak");
}
if ( -f $Makefile ) {
if ( ! -f $Makefile ) {
# truncate() may not be implemented, so we
# play it safe here.
local(*TRUNC);
open(TRUNC,"> $Makefile.bak") && close(TRUNC);
} else {
rename($Makefile,"$Makefile.bak");
}
# now copy Makefile.bak into Makefile, rm'ing old dependencies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment