From e455a9297eacaa6237171860eb0c4ff50aacbae2 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Wed, 23 Apr 2003 19:22:42 +0000 Subject: [PATCH] Support assembly files. (Logical change 1.85) --- scripts/make-L-files | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/make-L-files b/scripts/make-L-files index e93a32d9..01db74ce 100644 --- a/scripts/make-L-files +++ b/scripts/make-L-files @@ -1,10 +1,16 @@ #!/bin/sh -for gname in `ls G*.c G*.cxx 2>/dev/null`; do +for gname in `ls G*.c G*.cxx G*.S 2>/dev/null`; do lname="L$(expr $gname : '.\(.*\)')" bk edit $lname >/dev/null 2>&1 + ext=$(expr $gname : '[^.]*[.]\(.*\)') + if [ "$ext" = "S" ]; then + include="" + else + include="#include " + fi echo -e "\ #define UNW_LOCAL_ONLY\n\ -#include \n\ +$include\n\ #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)\n\ #include \"$gname\"\n\ #endif" > $lname