freebsd-ports/science/ghemical/files/ghemical-f2c.sh
Maho Nakata d77523f67e 1) some cleanups and enhancements
2) sorry I didn't mention your PR

PR:		63366
Submitted by:	Vladimir I. Chukharev <chu@gpi.ru>
2004-03-06 21:50:13 +00:00

16 lines
549 B
Bash

#
# Make new c sources from fortran sources, restore changes,
# made by Tommi Hassinen (3 comments are corrected additionally).
# Should be started in miniMOPAC directory.
f2c fortran/*.f
cp fortran/*.c ./
sed -e 's,/\* fortran/\(.*\)\.f -- translated by f2c (version 20000817),/\* \1.f -- translated by f2c (version 19991025),' \
-e 's,dscal_,mMdscal_,g' \
-e 's,dswap_,mMdswap_,g' \
-e 's,daxpy_,mMdaxpy_,g' \
-i '' *.c
mv etime.c etime.c.orig
head -18 etime.c.orig > etime.c
echo '#include <time.h>' >> etime.c
tail +19 etime.c.orig >> etime.c