Last change
on this file since 219 was
219,
checked in by hozdoba, 12 years ago
|
Préparation nouvelle arborescence
|
-
Property svn:executable set to
*
|
File size:
380 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | if [[ $# != 2 ]] ; then |
---|
3 | echo "Usage : ./prepocess_cpp.sh <output> <input>" |
---|
4 | exit |
---|
5 | fi |
---|
6 | |
---|
7 | if test -f $2; then |
---|
8 | cpp -x c++ -P -o $1.0.temp $2; |
---|
9 | sed 's/;;/\r\n/g' <$1.0.temp >$1.1.temp |
---|
10 | sed 's/INCLUDE/#include/g' <$1.1.temp >$1.0.temp |
---|
11 | sed 's/\r\n \r\n/\r\n/g' <$1.0.temp >$1 |
---|
12 | rm -f $1.0.temp $1.1.temp |
---|
13 | else |
---|
14 | echo "le fichier d'entrée n'existe pas !" |
---|
15 | fi |
---|
16 | |
---|
17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.