Revision: 73083
http://sourceforge.net/p/brlcad/code/73083
Author: brlcad
Date: 2019-05-17 13:47:33 +0000 (Fri, 17 May 2019)
Log Message:
-----------
don't halt if it already has a header. might just need a footer.
Modified Paths:
--------------
brlcad/trunk/sh/template.sh
Modified: brlcad/trunk/sh/template.sh
===================================================================
--- brlcad/trunk/sh/template.sh 2019-05-17 13:42:21 UTC (rev 73082)
+++ brlcad/trunk/sh/template.sh 2019-05-17 13:47:33 UTC (rev 73083)
@@ -130,7 +130,8 @@
# apply the header
output="`env bash \"$header_sh\" \"$LICE\" \"$FILE\" \"$PROJ\" \"$COPY\" 2>&1`"
-if [ $? -ne 0 ] ; then
+# return 0 is header applied, return 9 is header already exists
+if [ $? -ne 0 -a $? -ne 9 ] ; then
if [ -f "$FILE.backup" ] ; then
cp "$FILE.backup" "$FILE"
fi
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits