#!/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 'libcommon-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 # copy generated headers #for i in $(find ${BUILD}/providers/common/include/prov -name '*.h.in'); do # cp ${i%.in} prov #done for i in $(find ${BUILD}/providers/common/der -name '*_gen.c.in'); do cp ${i%.in} . done rm -f der_sm2_gen.c |