1*7e568061Sespie#!/bin/sh 2*7e568061Sespie# 3*7e568061Sespie# convert_to_g2c [f2c-dir] 4*7e568061Sespie# 5*7e568061Sespie# Renames certain files in a netlib f2c directory so they have the `.netlib' 6*7e568061Sespie# suffix, a la g77's version of f2c (libg2c). If `f2c-dir' is not specified, 7*7e568061Sespie# `f2c-YYYYMMDD' is the default, where YYYYMMDD is the current date. 8*7e568061Sespie# The directory is renamed such that the first `f' becomes a `g', 9*7e568061Sespie# usually `f2c-YYYYMMDD' -> `g2c-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=f2c-`date +%Y%m%d` 23*7e568061Sespieelse 24*7e568061Sespie dir=$1 25*7e568061Sespiefi 26*7e568061Sespie 27*7e568061Sespienewdir=`echo $dir | sed -e "s:f:g:"` 28*7e568061Sespie 29*7e568061Sespiecd $dir 30*7e568061Sespie 31*7e568061Sespieset +e 32*7e568061Sespie 33*7e568061Sespiemv -i changes changes.netlib 34*7e568061Sespiemv -i disclaimer disclaimer.netlib 35*7e568061Sespiemv -i f2c.h g2c.hin 36*7e568061Sespiemv -i permission permission.netlib 37*7e568061Sespiemv -i readme readme.netlib 38*7e568061Sespiecd libF77 39*7e568061Sespiemv -i README README.netlib 40*7e568061Sespiemv -i makefile makefile.netlib 41*7e568061Sespiecd ../libI77 42*7e568061Sespiemv -i README README.netlib 43*7e568061Sespiemv -i makefile makefile.netlib 44*7e568061Sespiecd .. 45*7e568061Sespie 46*7e568061Sespiecd .. 47*7e568061Sespie 48*7e568061Sespiemv -iv $dir $newdir 49