3 # convert_to_g2c [f2c-dir]
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'.
11 # (C) 1999 Free Software Foundation
12 # Originally by James Craig Burley <craig@jcb-sc.com>, September 1999.
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
22 dir
=f2c-
`date +%Y%m%d`
27 newdir
=`echo $dir | sed -e "s:f:g:"`
33 mv -i changes changes.netlib
34 mv -i disclaimer disclaimer.netlib
36 mv -i permission permission.netlib
37 mv -i readme readme.netlib
39 mv -i README README.netlib
40 mv -i makefile makefile.netlib
42 mv -i README README.netlib
43 mv -i makefile makefile.netlib