summaryrefslogtreecommitdiff
path: root/science/ghemical/files/ghemical-f2c.sh
diff options
context:
space:
mode:
Diffstat (limited to 'science/ghemical/files/ghemical-f2c.sh')
-rw-r--r--science/ghemical/files/ghemical-f2c.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/science/ghemical/files/ghemical-f2c.sh b/science/ghemical/files/ghemical-f2c.sh
new file mode 100644
index 000000000000..9a1a37200c41
--- /dev/null
+++ b/science/ghemical/files/ghemical-f2c.sh
@@ -0,0 +1,16 @@
+#
+# 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