Daily bump.
[official-gcc.git] / contrib / convert_to_g2c
blob5d05f84e3932f7f210b2a61b585cc08c6b62db90
1 #!/bin/sh
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
18 set -e
20 if [ x$1 = x ]
21 then
22 dir=f2c-`date +%Y%m%d`
23 else
24 dir=$1
27 newdir=`echo $dir | sed -e "s:f:g:"`
29 cd $dir
31 set +e
33 mv -i changes changes.netlib
34 mv -i disclaimer disclaimer.netlib
35 mv -i f2c.h g2c.hin
36 mv -i permission permission.netlib
37 mv -i readme readme.netlib
38 cd libF77
39 mv -i README README.netlib
40 mv -i makefile makefile.netlib
41 cd ../libI77
42 mv -i README README.netlib
43 mv -i makefile makefile.netlib
44 cd ..
46 cd ..
48 mv -iv $dir $newdir