1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-27 01:27:39 +01:00
libunwind-eh_elf/scripts/make-L-files
mostang.com!davidm c2e6b4ced0 Also handle C++ files (.cxx).
(Logical change 1.70)
2003-03-28 07:43:22 +00:00

7 lines
212 B
Bash

#!/bin/sh
for gname in G*.c G*.cxx; 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
done