Sync usage with man page.
[netbsd-mini2440.git] / crypto / dist / heimdal / lib / hcrypto / imath / import.sh
blob4dd733149d9ae470a0fe28152374db7c600ea971
1 #!/bin/sh
2 # $Heimdal: import.sh 19739 2007-01-05 21:07:34Z lha $
3 # $NetBSD$
5 dir=$1
7 if test ! -f "$dir"/imdrover.c ; then
8 echo $dir doesnt seem to contain imath
9 exit 1
12 rm *.[ch]
14 headers=`grep ^HDRS "$dir"/Makefile |sed 's/^HDRS=//' | sed 's/imdrover.h//'`
15 code=`echo $headers | sed 's/imrat.h//g'`
16 code=`echo $headers | sed 's/rsamath.h//g'`
17 code=`echo $headers | sed 's/\.h/.c/g'`
19 for a in $headers $code LICENSE ; do
20 cp "$dir"/"$a" .
21 done
23 echo "imathsource = \\"
24 for a in $headers $code ; do
25 echo " imath/$a \\"
26 done | sort