1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#! /bin/bash
set -x
function find_syms() {
set -x
${CC:-gcc} ${CPPFLAGS} -E include/tcl.h | grep '^ *extern.*Tcl_'| sed 's@^ *extern *@@;s@([^(]*$@@;s@.* *\** *@@' | sort -u | grep '^Tcl_' | grep -v ';$' | while read -r sym; do
echo " TCCSYM($sym)"
done
}
add="$(find_syms)"
|
<
<
<
<
|
1
2
3
4
5
6
7
8
9
10
|
#! /bin/bash
function find_syms() {
${CC:-gcc} ${CPPFLAGS} -E include/tcl.h | grep '^ *extern.*Tcl_'| sed 's@^ *extern *@@;s@([^(]*$@@;s@.* *\** *@@' | sort -u | grep '^Tcl_' | grep -v ';$' | while read -r sym; do
echo " TCCSYM($sym)"
done
}
add="$(find_syms)"
|