|
|
|
@ -2,6 +2,8 @@
|
|
|
|
|
hn=mld_const.h
|
|
|
|
|
fn=mld_base_prec_type.F90
|
|
|
|
|
echo "/* This file was generated by a script using the $fn file as a basis. */" > $hn
|
|
|
|
|
echo '#ifndef MLD_CONST_H_' >> $hn
|
|
|
|
|
echo '#define MLD_CONST_H_' >> $hn
|
|
|
|
|
echo '#ifdef __cplusplus' >> $hn
|
|
|
|
|
echo 'extern "C" { ' >> $hn
|
|
|
|
|
echo '#endif' >> $hn
|
|
|
|
@ -9,5 +11,6 @@ cat $fn | sed 's/=/= (/g;s/$/ )/g' | grep '\(^ *!\)\|parameter' | grep '_\>'
|
|
|
|
|
echo '#ifdef __cplusplus' >> $hn
|
|
|
|
|
echo '}' >> $hn
|
|
|
|
|
echo '#endif' >> $hn
|
|
|
|
|
echo '#endif' >> $hn
|
|
|
|
|
exit
|
|
|
|
|
|
|
|
|
|