blob: 14fa25f7cfd72496e94e06badd52f5a93f3aea7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
BUILD=../../openssl-3.0.8
create() {
sed -e "s,@proto@,$proto,g" -e "s/@PROTO@/$PROTO/g" -e "/@SRCS@/ {
r $fn.out
d
}" PROTO.in > $fn.inc
rm -f $fn.out
}
d=
for i in $(find ${BUILD} -name 'libapps-lib-*.d'); do
nd=$(dirname "$i" | sed -e s,${BUILD}/,,)
if [ "$nd" != "$d" ]; then
if [ -n "$d" ]; then
create
fi
fn=$(echo $nd | tr '/' '_')
proto=$nd
PROTO=$(echo $fn | tr '[a-z]' '[A-Z]')
d=$nd
rm -f $fn.out
fi
echo $(basename $i) | \
sed -e 's/.*-lib-//' -e 's/\.d/.c \\/' >> $fn.out
done
create
|