1 1.1 christos #!/bin/sh 2 1.1 christos 3 1.1 christos BUILD=../../openssl-3.0.8 4 1.1 christos 5 1.1 christos create() { 6 1.1 christos sed -e "s,@proto@,$proto,g" -e "s/@PROTO@/$PROTO/g" -e "/@SRCS@/ { 7 1.1 christos r $fn.out 8 1.1 christos d 9 1.1 christos }" PROTO.in > $fn.inc 10 1.1 christos rm -f $fn.out 11 1.1 christos } 12 1.1 christos 13 1.1 christos d= 14 1.1 christos for i in $(find ${BUILD} -name 'libcommon-lib-*.d'); do 15 1.1 christos nd=$(dirname "$i" | sed -e s,${BUILD}/,,) 16 1.1 christos if [ "$nd" != "$d" ]; then 17 1.1 christos if [ -n "$d" ]; then 18 1.1 christos create 19 1.1 christos fi 20 1.1 christos fn=$(echo $nd | tr '/' '_') 21 1.1 christos proto=$nd 22 1.1 christos PROTO=$(echo $fn | tr '[a-z]' '[A-Z]') 23 1.1 christos d=$nd 24 1.1 christos rm -f $fn.out 25 1.1 christos fi 26 1.1 christos echo $(basename $i) | \ 27 1.1 christos sed -e 's/.*-lib-//' -e 's/\.d/.c \\/' >> $fn.out 28 1.1 christos done 29 1.1 christos create 30 1.1 christos 31 1.1 christos # copy generated headers 32 1.1 christos #for i in $(find ${BUILD}/providers/common/include/prov -name '*.h.in'); do 33 1.1 christos # cp ${i%.in} prov 34 1.1 christos #done 35 1.1 christos 36 1.1 christos for i in $(find ${BUILD}/providers/common/der -name '*_gen.c.in'); do 37 1.1 christos cp ${i%.in} . 38 1.1 christos done 39 1.1 christos 40 1.1 christos rm -f der_sm2_gen.c 41