]> gcc.gnu.org Git - gcc.git/blame - contrib/convert_to_g2c
Makefile.in: Delete references to enquire.
[gcc.git] / contrib / convert_to_g2c
CommitLineData
697f6b2f
CB
1#!/bin/sh
2#
3# convert_to_g2c [f2c-dir]
4#
5# Renames certain files in a netlib f2c directory so they have the `.netlib'
6# suffix, a la g77's version of f2c (libg2c). If `f2c-dir' is not specified,
7# `f2c-YYYYMMDD' is the default, where YYYYMMDD is the current date.
8# The directory is renamed such that the first `f' becomes a `g',
9# usually `f2c-YYYYMMDD' -> `g2c-YYYYMMDD'.
10#
11# (C) 1999 Free Software Foundation
12# Originally by James Craig Burley <craig@jcb-sc.com>, September 1999.
13#
14# This script is Free Software, and it can be copied, distributed and
15# modified as defined in the GNU General Public License. A copy of
16# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
17
18set -e
19
20if [ x$1 = x ]
21then
22 dir=f2c-`date +%Y%m%d`
23else
24 dir=$1
25fi
26
27newdir=`echo $dir | sed -e "s:f:g:"`
28
29cd $dir
30
31set +e
32
33mv -i changes changes.netlib
34mv -i disclaimer disclaimer.netlib
35mv -i f2c.h g2c.hin
36mv -i permission permission.netlib
37mv -i readme readme.netlib
38cd libF77
39mv -i README README.netlib
40mv -i makefile makefile.netlib
41cd ../libI77
42mv -i README README.netlib
43mv -i makefile makefile.netlib
44cd ..
45
46cd ..
47
48mv -iv $dir $newdir
This page took 0.206043 seconds and 5 git commands to generate.