test debug
[heimdal.git] / lib / hcrypto / imath / import.sh
blob6fca6ae237543cd14eaf5b027172a98a59fcc674
1 #!/bin/sh
2 # $Id$
4 dir=$1
6 if test ! -f "$dir"/imdrover.c ; then
7 echo $dir doesnt seem to contain imath
8 exit 1
9 fi
11 rm *.[ch]
13 headers=`grep ^HDRS "$dir"/Makefile |sed 's/^HDRS=//' | sed 's/imdrover.h//'`
14 code=`echo $headers | sed 's/imrat.h//g'`
15 code=`echo $headers | sed 's/rsamath.h//g'`
16 code=`echo $headers | sed 's/\.h/.c/g'`
18 for a in $headers $code LICENSE ; do
19 cp "$dir"/"$a" .
20 done
22 echo "imathsource = \\"
23 for a in $headers $code ; do
24 echo " imath/$a \\"
25 done | sort