Skip to content

Commit

Permalink
make f2c buildable via vulcan
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Rehfeld committed Apr 8, 2012
0 parents commit d66a44f
Show file tree
Hide file tree
Showing 275 changed files with 54,856 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@
.rvmrc
Gemfile.lock
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
source 'http://rubygems.org'

gem 'rake'

group :development do
gem 'heroku'
gem 'vulcan'
end
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,4 @@
desc 'build the f2c software on a vulcan build server'
task :build do
sh "vulcan build -s ./f2c -p /tmp/f2c -c './build.sh' -v"
end
4 changes: 4 additions & 0 deletions bin/compile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>

echo "-----> Nothing to do."
5 changes: 5 additions & 0 deletions bin/detect
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# bin/detect <build-dir>

echo "f77"
exit 0
3 changes: 3 additions & 0 deletions bin/release
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

echo "--- {}"
1 change: 1 addition & 0 deletions f2c/.list
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
jcarbaut@myway.com
7 changes: 7 additions & 0 deletions f2c/.master
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,7 @@
lib f2c
for converting Fortran to C
by Feldman, Gay, Maimone, and Schryer
editor David Gay
master ornl.gov
gams s1

2 changes: 2 additions & 0 deletions f2c/00lastchange
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@
Mon Aug 1 13:46:40 MDT 2011
README, README in libf2c.zip: update some netlib pointers.
35 changes: 35 additions & 0 deletions f2c/build.sh
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/sh

# set up target directory structure
mkdir -p /tmp/f2c/bin
mkdir -p /tmp/f2c/lib
mkdir -p /tmp/f2c/include
mkdir -p /tmp/f2c/share/man/man1

# install header
cp f2c.h /tmp/f2c/include/

# build & install libf2c
cd libf2c
make
cp libf2c.a /tmp/f2c/lib/
ranlib /tmp/f2c/lib/libf2c.a
cd ..

# build & install f2c translator
cd src
make
cp f2c /tmp/f2c/bin/
cd ..

# install fc script
cp fc /tmp/f2c/bin/

# install man page
cp f2c.1t /tmp/f2c/share/man/man1/f2c.1

# clean up
cd src
make clean
cd ../libf2c
make clean
Loading

0 comments on commit d66a44f

Please sign in to comment.