|
Last change
on this file was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 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 <[email protected]>, 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 |
|
|---|
| 18 | set -e
|
|---|
| 19 |
|
|---|
| 20 | if [ x$1 = x ]
|
|---|
| 21 | then
|
|---|
| 22 | dir=f2c-`date +%Y%m%d`
|
|---|
| 23 | else
|
|---|
| 24 | dir=$1
|
|---|
| 25 | fi
|
|---|
| 26 |
|
|---|
| 27 | newdir=`echo $dir | sed -e "s:f:g:"`
|
|---|
| 28 |
|
|---|
| 29 | cd $dir
|
|---|
| 30 |
|
|---|
| 31 | set +e
|
|---|
| 32 |
|
|---|
| 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 ..
|
|---|
| 45 |
|
|---|
| 46 | cd ..
|
|---|
| 47 |
|
|---|
| 48 | mv -iv $dir $newdir
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.