mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-18 05:47:39 +01:00
50e11fa8b2
(Logical change 1.75)
12 lines
315 B
Bash
12 lines
315 B
Bash
#!/bin/sh
|
|
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 "\
|
|
#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
|