1*7e568061Sespie#!/bin/sh 2*7e568061Sespie# 3*7e568061Sespie# convert_to_f2c [g2c-dir] 4*7e568061Sespie# 5*7e568061Sespie# Renames certain files in a g2c (libg2c) directory so they no longer have the 6*7e568061Sespie# `.netlib' suffix, a la netlib's f2c distribution. If `g2c-dir' is not 7*7e568061Sespie# specified, `g2c-YYYYMMDD' is the default, where YYYYMMDD is the current 8*7e568061Sespie# date. The directory is renamed such that the first `g' becomes an `f', 9*7e568061Sespie# usually `g2c-YYYYMMDD' -> `f2c-YYYYMMDD'. 10*7e568061Sespie# 11*7e568061Sespie# (C) 1999 Free Software Foundation 12*7e568061Sespie# Originally by James Craig Burley <craig@jcb-sc.com>, September 1999. 13*7e568061Sespie# 14*7e568061Sespie# This script is Free Software, and it can be copied, distributed and 15*7e568061Sespie# modified as defined in the GNU General Public License. A copy of 16*7e568061Sespie# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html 17*7e568061Sespie 18*7e568061Sespieset -e 19*7e568061Sespie 20*7e568061Sespieif [ x$1 = x ] 21*7e568061Sespiethen 22*7e568061Sespie dir=g2c-`date +%Y%m%d` 23*7e568061Sespieelse 24*7e568061Sespie dir=$1 25*7e568061Sespiefi 26*7e568061Sespie 27*7e568061Sespienewdir=`echo $dir | sed -e "s:g:f:"` 28*7e568061Sespie 29*7e568061Sespiecd $dir 30*7e568061Sespie 31*7e568061Sespieset +e 32*7e568061Sespie 33*7e568061Sespiemv -i changes.netlib changes 34*7e568061Sespiemv -i disclaimer.netlib disclaimer 35*7e568061Sespiemv -i g2c.hin f2c.h 36*7e568061Sespiemv -i permission.netlib permission 37*7e568061Sespiemv -i readme.netlib readme 38*7e568061Sespiecd libF77 39*7e568061Sespiemv -i README.netlib README 40*7e568061Sespiemv -i makefile.netlib makefile 41*7e568061Sespiecd ../libI77 42*7e568061Sespiemv -i README.netlib README 43*7e568061Sespiemv -i makefile.netlib makefile 44*7e568061Sespiecd .. 45*7e568061Sespie 46*7e568061Sespiecd .. 47*7e568061Sespie 48*7e568061Sespiemv -iv $dir $newdir 49