From: <ped...@us...> - 2008-09-30 11:56:44
|
Revision: 1195 http://cegcc.svn.sourceforge.net/cegcc/?rev=1195&view=rev Author: pedroalves Date: 2008-09-30 11:56:35 +0000 (Tue, 30 Sep 2008) Log Message: ----------- * build-cegcc.sh (COMPONENTS_NUM): Correctly get array size. * build-mingw32ce.sh (COMPONENTS_NUM): Likewise. Modified Paths: -------------- trunk/cegcc/src/build-cegcc.sh trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2008-09-26 01:45:06 UTC (rev 1194) +++ trunk/cegcc/src/build-cegcc.sh 2008-09-30 11:56:35 UTC (rev 1195) @@ -17,7 +17,7 @@ # The list of components, in build order. There's a build_FOO # function for each of these components COMPONENTS=( binutils bootstrap_gcc w32api newlib dummy_cegccdll gcc cegccdll cegccthrddll libstdcppdll profile docs ) -COMPONENTS_NUM=${#COMPONENTS} +COMPONENTS_NUM=${#COMPONENTS[*]} # Build comma separated list of components, for user display. for ((i=0;i<$COMPONENTS_NUM;i++)); do Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2008-09-26 01:45:06 UTC (rev 1194) +++ trunk/cegcc/src/build-mingw32ce.sh 2008-09-30 11:56:35 UTC (rev 1195) @@ -19,7 +19,7 @@ # The list of components, in build order. There's a build_FOO # function for each of these components COMPONENTS=( binutils bootstrap_gcc mingw w32api gcc profile dlls docs ) -COMPONENTS_NUM=${#COMPONENTS} +COMPONENTS_NUM=${#COMPONENTS[*]} # Build comma separated list of components, for user display. for ((i=0;i<$COMPONENTS_NUM;i++)); do This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |