From: <ped...@us...> - 2007-12-25 20:18:37
|
Revision: 1105 http://cegcc.svn.sourceforge.net/cegcc/?rev=1105&view=rev Author: pedroalves Date: 2007-12-25 12:18:36 -0800 (Tue, 25 Dec 2007) Log Message: ----------- 2007-12-25 Pedro Alves <ped...@po...> * build-mingw32ce.sh: Display bootstrapgcc option on `usage`. Move option reporting below option processing. Exit immediatelly if an invalid component is specified. Actually allow specifying a list of components. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2007-12-25 19:59:08 UTC (rev 1104) +++ trunk/cegcc/src/ChangeLog 2007-12-25 20:18:36 UTC (rev 1105) @@ -1,3 +1,10 @@ +2007-12-25 Pedro Alves <ped...@po...> + + * build-mingw32ce.sh: Display bootstrapgcc option on `usage`. + Move option reporting below option processing. Exit immediatelly + if an invalid component is specified. Actually allow specifying a + list of components. + 2007-12-24 Pedro Alves <ped...@po...> * build-mingw32ce.sh (usage): Make it run with sh. Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2007-12-25 19:59:08 UTC (rev 1104) +++ trunk/cegcc/src/build-mingw32ce.sh 2007-12-25 20:18:36 UTC (rev 1105) @@ -22,8 +22,8 @@ --prefix=PREFIX install toolchain in PREFIX [$ac_default_prefix] --components=LIST specify which components to build - valid components are: all,binutils,gcc,w32api,mingw, - gdb,gdbstub,docs and profile + valid components are: all,binutils,bootstrapgcc, + gcc,w32api,mingw, gdb,gdbstub,docs and profile [all] Report bugs to <ceg...@li...>. @@ -130,23 +130,6 @@ exit 1 fi -# Report about options. -echo The following components will be built: ${components} - -export TARGET="arm-unknown-mingw32ce" -# export TARGET="arm-wince-mingw32ce" -export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` -export PATH=${PREFIX}/bin:${PATH} - -echo "Building mingw32ce:" -echo "source: ${BASE_DIRECTORY}" -echo "building in: ${BUILD_DIR}" -echo "prefix: ${PREFIX}" -echo "components: ${components}" - -mkdir -p ${BUILD_DIR} || exit 1 -mkdir -p ${PREFIX} || exit 1 - build_binutils() { echo "" @@ -397,21 +380,39 @@ build_gdbstub } +split_components=`echo "${components}" | sed -e 's/,/ /g'` + # check for valid options before trying to build them all. -eval "set -- $components" +eval "set -- $split_components" while [ -n "$1" ]; do case $1 in binutils | bootstrapgcc | w32api | \ mingw | gcc | gdb | gdbstub | \ docs | profile | all) ;; - *) echo "Please enter a valid build option." ;; + *) + echo "Please enter a valid build option." + exit 1 + ;; esac shift done +export TARGET="arm-unknown-mingw32ce" +export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` +export PATH=${PREFIX}/bin:${PATH} + +echo "Building mingw32ce:" +echo "source: ${BASE_DIRECTORY}" +echo "building in: ${BUILD_DIR}" +echo "prefix: ${PREFIX}" +echo "components: ${components}" + +mkdir -p ${BUILD_DIR} || exit 1 +mkdir -p ${PREFIX} || exit 1 + # now actually try to build them. -eval "set -- $components" +eval "set -- $split_components" while [ -n "$1" ]; do case $1 in binutils) build_binutils ;; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |