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