diff options
author | mostang.com!davidm <mostang.com!davidm> | 2003-04-03 07:59:15 +0000 |
---|---|---|
committer | mostang.com!davidm <mostang.com!davidm> | 2003-04-03 07:59:15 +0000 |
commit | 50e11fa8b2ec174a2d45046e89409b4692341538 (patch) | |
tree | f2d434061a33ca3e18ce7edf86e04580bbc2fb33 /scripts | |
parent | 8d057cb80042d697dcfb8fe1319af80fd5b32ebd (diff) | |
download | libunwind-50e11fa8b2ec174a2d45046e89409b4692341538.tar.gz |
Compile an L-file only if UNW_LOCAL_ONLY surives past the include of <libunwind.h>.
(Logical change 1.75)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/make-L-files | 11 |
1 files 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 <libunwind.h>\n\ +#if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)\n\ +#include \"$gname\"\n\ +#endif" > $lname + echo created $lname done |