source:
XMLIO_V2/dev/common/src/xmlio/fortran/preprocess_f03.sh
@
219
Last change on this file since 219 was 219, checked in by hozdoba, 13 years ago | |
---|---|
|
|
File size: 254 bytes |
Rev | Line | |
---|---|---|
[219] | 1 | #!/bin/bash |
2 | if [[ $# != 2 ]] ; then | |
3 | echo "Usage : ./prepocess_f03.sh <output> <input>" | |
4 | exit | |
5 | fi | |
6 | ||
7 | if test -f $2; then | |
8 | cpp -P -o $1.temp $2; | |
9 | sed 's/;/\r\n/g' <$1.temp >$1 | |
10 | rm -f $1.temp | |
11 | else | |
12 | echo "le fichier d'entrée n'existe pas !" | |
13 | fi | |
14 | ||
15 |
Note: See TracBrowser
for help on using the repository browser.