diff mkoctfile.in @ 3660:2dc265765850

[project @ 2000-04-20 08:22:33 by jwe]
author jwe
date Thu, 20 Apr 2000 08:23:47 +0000
parents e68976912bb5
children 719cc61d6dc6
line wrap: on
line diff
--- a/mkoctfile.in
+++ b/mkoctfile.in
@@ -187,8 +187,16 @@
   done
 fi
 
-$dbg "rm -f $octfile"
-rm -f $octfile
+## Uncomment the following group of lines if you get `Text file busy'
+## errors from ld.  This may happen if the .oct file is currently
+## running while you are trying to recompile it.  We try moving first,
+## since on somee systems (HP-UX, maybe others) it is possible to
+## rename running programs but not remove them.
+
+## $dbg "mv $octfile $octfile.bak"
+## mv $octfile $octfile.bak"
+## $dbg "rm -f $octfile.bak"
+## rm -f $octfile.bak
 
 # Link all the object files.