Hi all,

I just committed this patch to the build scripts to fix the bug in build-mingw32ce.sh that made the build continue for Carl even though
an error had occurred.
Also, I added a few missing error handlers in build-cegcc.sh and
made a bit of house cleaning.

Cheers,
Pedro Alves

---

src/ChangeLog


2006-10-27  Pedro Alves  <[EMAIL PROTECTED]>

        * build-mingw32ce.sh : Remove duplicated build_all function.
        (copy_headers) : Add error handlers.
        * build-cegcc.sh (copy_w32api_headers) : Add missing
        ${BASE_DIRECTORY}.
        Add error handler.

Index: build-mingw32ce.sh
===================================================================
--- build-mingw32ce.sh  (revision 719)
+++ build-mingw32ce.sh  (working copy)
@@ -25,31 +25,17 @@
 
 export TARGET="arm-wince-mingw32ce"
 export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess`
+export PATH=${PREFIX}/bin:${PATH}
+#export CFLAGS="-g3 -O0"
 
 echo "Building mingw32ce:"
 echo "source: ${BASE_DIRECTORY}"
 echo "build: ${BUILD_DIR}"
 echo "prefix: ${PREFIX}"
 
-export PATH=${PREFIX}/bin:${PATH}
-
 mkdir -p ${BUILD_DIR} || exit 1
 mkdir -p ${PREFIX} || exit 1
 
-function build_all
-{
-    build_binutils
-    build_import_libs
-    build_mingw_fake_runtime
-    copy_headers
-    build_bootstrap_gcc
-    build_mingw_runtime
-    build_gcc
-#    build_gdb
-#    build_gdbstub
-}
-
-
 function build_binutils()
 {
     echo ""
@@ -98,8 +84,8 @@
     echo ""
 
     mkdir -p ${PREFIX}/${TARGET}/include/
-    cp -rfp ${BASE_DIRECTORY}/mingw/include/*.h ${PREFIX}/${TARGET}/include/
-    cp -rfp ${BASE_DIRECTORY}/w32api/include/*.h ${PREFIX}/${TARGET}/include/
+    cp -rfp ${BASE_DIRECTORY}/mingw/include/*.h ${PREFIX}/${TARGET}/include/ 
|| exit 1
+    cp -rfp ${BASE_DIRECTORY}/w32api/include/*.h ${PREFIX}/${TARGET}/include/ 
|| exit 1
 }
 
 function build_bootstrap_gcc()
Index: build-cegcc.sh
===================================================================
--- build-cegcc.sh      (revision 719)
+++ build-cegcc.sh      (working copy)
@@ -21,14 +21,14 @@
 fi
 
 export TARGET="arm-wince-cegcc"
+export PATH=${PREFIX}/bin:${PATH}
+#export CFLAGS="-g3 -O0"
 
 echo "Building cegcc:"
 echo "source: ${BASE_DIRECTORY}"
 echo "build: ${BUILD_DIR}"
 echo "prefix: ${PREFIX}"
 
-export PATH=${PREFIX}/bin:${PATH}
-
 mkdir -p ${BUILD_DIR} || exit 1
 mkdir -p ${PREFIX} || exit 1
 
@@ -76,7 +76,7 @@
     echo ""
 
     mkdir -p ${PREFIX}/${TARGET}/include/w32api
-    cp -rf w32api/include/*.h ${PREFIX}/${TARGET}/include/w32api
+    cp -rf ${BASE_DIRECTORY}/w32api/include/*.h 
${PREFIX}/${TARGET}/include/w32api || exit 1
 }
 
 function build_dummy_cegccdll()
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to