diff options
author | Craig Burley <craig@jcb-sc.com> | 1999-09-11 21:53:17 +0000 |
---|---|---|
committer | Craig Burley <burley@gcc.gnu.org> | 1999-09-11 17:53:17 -0400 |
commit | 697f6b2ff5a596ab8a6a0f4ff0b4ebfb2a4010e7 (patch) | |
tree | e344fc9c60e7a4b8b2d0e90fe1969fff821bfed4 /contrib/convert_to_f2c | |
parent | 07095a8b8f63625d9535540e14fdc0c32ee43391 (diff) | |
download | gcc-697f6b2ff5a596ab8a6a0f4ff0b4ebfb2a4010e7.zip gcc-697f6b2ff5a596ab8a6a0f4ff0b4ebfb2a4010e7.tar.gz gcc-697f6b2ff5a596ab8a6a0f4ff0b4ebfb2a4010e7.tar.bz2 |
New shell scripts to ease dealing with Netlib f2c vis-a-vis g77 libg2c
From-SVN: r29346
Diffstat (limited to 'contrib/convert_to_f2c')
-rwxr-xr-x | contrib/convert_to_f2c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/contrib/convert_to_f2c b/contrib/convert_to_f2c new file mode 100755 index 0000000..9a499fc --- /dev/null +++ b/contrib/convert_to_f2c @@ -0,0 +1,48 @@ +#!/bin/sh +# +# convert_to_f2c [g2c-dir] +# +# Renames certain files in a g2c (libg2c) directory so they no longer have the +# `.netlib' suffix, a la netlib's f2c distribution. If `g2c-dir' is not +# specified, `g2c-YYYYMMDD' is the default, where YYYYMMDD is the current +# date. The directory is renamed such that the first `g' becomes an `f', +# usually `g2c-YYYYMMDD' -> `f2c-YYYYMMDD'. +# +# (C) 1999 Free Software Foundation +# Originally by James Craig Burley <craig@jcb-sc.com>, September 1999. +# +# This script is Free Software, and it can be copied, distributed and +# modified as defined in the GNU General Public License. A copy of +# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html + +set -e + +if [ x$1 = x ] +then + dir=g2c-`date +%Y%m%d` +else + dir=$1 +fi + +newdir=`echo $dir | sed -e "s:g:f:"` + +cd $dir + +set +e + +mv -i changes.netlib changes +mv -i disclaimer.netlib disclaimer +mv -i g2c.hin f2c.h +mv -i permission.netlib permission +mv -i readme.netlib readme +cd libF77 +mv -i README.netlib README +mv -i makefile.netlib makefile +cd ../libI77 +mv -i README.netlib README +mv -i makefile.netlib makefile +cd .. + +cd .. + +mv -iv $dir $newdir |