diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /unix/hlib/fc.sh | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'unix/hlib/fc.sh')
-rwxr-xr-x | unix/hlib/fc.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/unix/hlib/fc.sh b/unix/hlib/fc.sh new file mode 100755 index 00000000..88a0762c --- /dev/null +++ b/unix/hlib/fc.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# +# FC.SH -- Link an IMFORT or host fortran program from IRAF. A front end +# to XC, the purpose of this script is to determine the IRAF architecture +# and add the appropriate host compiler file to XC. + + +# Determine the desired architecture. +IRAFARCH=`$iraf/unix/hlib/irafarch.csh` +MACH=$IRAFARCH + + +# Set any float option switch. +case $IRAFARCH in + macosx) + float="-/arch -//i386" + ;; + macintel) + float="-/arch -//x86_64" + ;; + linux64) + float="-/m64" # FIXME + ;; + *) + float="" + ;; +esac + +# Call XC with the appropriate float option. +xc $float $@ |