replaced [[..]] with [..] and changed == to -eq

This commit is contained in:
Andreas Fabri 2006-06-26 09:57:00 +00:00
parent 2a8cd39558
commit 716e08db2a
1 changed files with 5 additions and 5 deletions

View File

@ -71,7 +71,7 @@ create_makefile_entry_cpp()
# Print target for $1 executable if $CFILE contains a function "main()" # Print target for $1 executable if $CFILE contains a function "main()"
egrep '\bmain[ \t]*\(' $CFILE >/dev/null 2>&1 egrep '\bmain[ \t]*\(' $CFILE >/dev/null 2>&1
if [[ $? == 0 ]]; then if [ $? -eq 0 ]; then
echo "$1\$(EXE_EXT): $1\$(OBJ_EXT)" echo "$1\$(EXE_EXT): $1\$(OBJ_EXT)"
echo " \$(CGAL_CXX) \$(LIBPATH) \$(EXE_OPT)$1 $1\$(OBJ_EXT) \$(LDFLAGS)" echo " \$(CGAL_CXX) \$(LIBPATH) \$(EXE_OPT)$1 $1\$(OBJ_EXT) \$(LDFLAGS)"
echo echo
@ -100,7 +100,7 @@ create_makefile_entry_C()
# Print target for $1 executable if $CFILE contains a function "main()" # Print target for $1 executable if $CFILE contains a function "main()"
egrep '\bmain[ \t]*\(' $CFILE >/dev/null 2>&1 egrep '\bmain[ \t]*\(' $CFILE >/dev/null 2>&1
if [[ $? == 0 ]]; then if [ $? -eq 0 ]; then
echo "$1\$(EXE_EXT): $1\$(OBJ_EXT)" echo "$1\$(EXE_EXT): $1\$(OBJ_EXT)"
echo " \$(CGAL_CXX) \$(LIBPATH) \$(EXE_OPT)$1 $1\$(OBJ_EXT) \$(LDFLAGS)" echo " \$(CGAL_CXX) \$(LIBPATH) \$(EXE_OPT)$1 $1\$(OBJ_EXT) \$(LDFLAGS)"
echo echo
@ -175,7 +175,7 @@ create_makefile()
# Add $file's executable to "all" target # Add $file's executable to "all" target
# if $file contains a function "main()" # if $file contains a function "main()"
egrep '\bmain[ \t]*\(' $file >/dev/null 2>&1 egrep '\bmain[ \t]*\(' $file >/dev/null 2>&1
if [[ $? == 0 ]]; then if [ $? -eq 0 ]; then
printf "\\\\\n `basename $file .C`\$(EXE_EXT) " printf "\\\\\n `basename $file .C`\$(EXE_EXT) "
fi fi
done done
@ -183,7 +183,7 @@ create_makefile()
# Add $file's executable to "all" target # Add $file's executable to "all" target
# if $file contains a function "main()" # if $file contains a function "main()"
egrep '\bmain[ \t]*\(' $file >/dev/null 2>&1 egrep '\bmain[ \t]*\(' $file >/dev/null 2>&1
if [[ $? == 0 ]]; then if [ $? -eq 0 ]; then
printf "\\\\\n `basename $file .cpp`\$(EXE_EXT) " printf "\\\\\n `basename $file .cpp`\$(EXE_EXT) "
fi fi
done done
@ -218,7 +218,7 @@ create_makefile()
echo echo
echo echo
echo ".cpp\$(OBJ_EXT):" echo ".cpp\$(OBJ_EXT):"
echo " \$(CGAL_CXX) \$(CXXFLAGS) \$(OBJ_OPT) \$<" echo " \$(CGAL_CXX) \$(CXXFLAGS) \$(OBJ_OPT) \$<"
echo echo
} }