Skip to content
Snippets Groups Projects
Commit 207c816a authored by ESCOBAR MUNOZ Juan's avatar ESCOBAR MUNOZ Juan Committed by WAUTELET Philippe
Browse files

Juan & Etienne Leblois : add -a option (binary file as text ) for utf8 pb , for grep version > 5.22

parent e2d99e3f
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ if [ "`echo $BASENAME | egrep -i $FILE_WITHOUT_INTERFACE_NEDEED `" = "" ] ...@@ -65,7 +65,7 @@ if [ "`echo $BASENAME | egrep -i $FILE_WITHOUT_INTERFACE_NEDEED `" = "" ]
then then
for sfile in `cat liste_file` for sfile in `cat liste_file`
do do
if [ "`egrep -i '^ *module|^ *program' $sfile`" = "" ] if [ "`egrep -ia '^ *module|^ *program' $sfile`" = "" ]
then then
if [ "$SUF" = "f90" ] if [ "$SUF" = "f90" ]
then then
...@@ -91,7 +91,7 @@ then ...@@ -91,7 +91,7 @@ then
fi fi
fi fi
ls -1 $TMP > liste_file ls -1 $TMP > liste_file
egrep -v "liste_file" liste_file > liste_file2 egrep -va "liste_file" liste_file > liste_file2
) )
# #
# génération des dependances # génération des dependances
...@@ -133,8 +133,8 @@ then ...@@ -133,8 +133,8 @@ then
cp $spllfile $DIRNAME/$spllfile cp $spllfile $DIRNAME/$spllfile
touch $DIRNAME/$BASENAME2.D touch $DIRNAME/$BASENAME2.D
fi fi
dep=`egrep -i "^[[:space:]]*use " $spllfile | sed -e 's/,/ /g' | awk '{ print '${TOCASE}'($2)".mod"}' | sort -u ` dep=`egrep -ia "^[[:space:]]*use " $spllfile | sed -e 's/,/ /g' | awk '{ print '${TOCASE}'($2)".mod"}' | sort -u `
mod=`egrep -i "^[[:space:]]*module " $spllfile | sed -e 's/,/ /g' | awk '{ print '${TOCASE}'($2)".mod"}' | sort -u | grep -iv procedure ` mod=`egrep -ia "^[[:space:]]*module " $spllfile | sed -e 's/,/ /g' | awk '{ print '${TOCASE}'($2)".mod"}' | sort -u | grep -iv procedure `
echo $mod : $spllbase.o >> $DIRNAME/$BASENAME2.D echo $mod : $spllbase.o >> $DIRNAME/$BASENAME2.D
echo $spllbase.o : $spllfile $dep >> $DIRNAME/$BASENAME2.D echo $spllbase.o : $spllfile $dep >> $DIRNAME/$BASENAME2.D
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment