From 50e11fa8b2ec174a2d45046e89409b4692341538 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 3 Apr 2003 07:59:15 +0000 Subject: [PATCH] Compile an L-file only if UNW_LOCAL_ONLY surives past the include of . (Logical change 1.75) --- scripts/make-L-files | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/make-L-files b/scripts/make-L-files index 33fddba1..e93a32d9 100644 --- a/scripts/make-L-files +++ b/scripts/make-L-files @@ -1,7 +1,12 @@ #!/bin/sh -for gname in G*.c G*.cxx; do +for gname in `ls G*.c G*.cxx 2>/dev/null`; do lname="L$(expr $gname : '.\(.*\)')" bk edit $lname >/dev/null 2>&1 - echo -e "#ifndef UNW_REMOTE_ONLY\n#define UNW_LOCAL_ONLY\n\ -#include \"$gname\"\n#endif" > $lname + echo -e "\ +#define UNW_LOCAL_ONLY\n\ +#include \n\ +#if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)\n\ +#include \"$gname\"\n\ +#endif" > $lname + echo created $lname done