From: <dan...@us...> - 2006-12-18 16:20:56
|
Revision: 841 http://svn.sourceforge.net/cegcc/?rev=841&view=rev Author: dannybackx Date: 2006-12-18 08:20:54 -0800 (Mon, 18 Dec 2006) Log Message: ----------- Add code to install documentation. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-cegcc.sh trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2006-12-17 19:02:45 UTC (rev 840) +++ trunk/cegcc/src/ChangeLog 2006-12-18 16:20:54 UTC (rev 841) @@ -1,3 +1,7 @@ +2006-12-18 Danny Backx <dan...@us...> + + * build-mingw32ce.sh, build-cegcc.sh (build_docs) : Add. + 2006-11-18 Danny Backx <dan...@us...> * build-mingw32ce.sh, build-cegcc.sh (build_gcc) : Work around Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2006-12-17 19:02:45 UTC (rev 840) +++ trunk/cegcc/src/build-cegcc.sh 2006-12-18 16:20:54 UTC (rev 841) @@ -277,6 +277,22 @@ cd ${BASE_DIRECTORY} || exit 1 } +function build_docs() +{ + echo "" + echo "INSTALLING documentation --------------------------" + echo "" + echo "" + + mkdir -p ${PREFIX}/share/docs || exit 1 + mkdir -p ${PREFIX}/share/images || exit 1 + + cd ${BASE_DIRECTORY}/../docs || exit 1 + tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) || exit 1 + cd ${BASE_DIRECTORY}/../website || exit 1 + tar cf - images | (cd ${PREFIX}/share; tar xf -) || exit 1 +} + function buildall() { build_binutils @@ -291,6 +307,7 @@ build_libstdcppdll build_gdb build_gdbstub + build_docs } case $BUILD_OPT in @@ -310,6 +327,7 @@ libstdc++) build_libstdcppdll ;; gdb) build_gdb ;; gdbstub) build_gdbstub ;; + docs) build_docs ;; all) buildall ;; *) echo "Please enter a valid build option." ;; esac Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2006-12-17 19:02:45 UTC (rev 840) +++ trunk/cegcc/src/build-mingw32ce.sh 2006-12-18 16:20:54 UTC (rev 841) @@ -233,6 +233,22 @@ cd ${BASE_DIRECTORY} || exit 1 } +function build_docs() +{ + echo "" + echo "INSTALLING documentation --------------------------" + echo "" + echo "" + + mkdir -p ${PREFIX}/share/docs || exit 1 + mkdir -p ${PREFIX}/share/images || exit 1 + + cd ${BASE_DIRECTORY}/../docs || exit 1 + tar cf - . | (cd ${PREFIX}/share/docs; tar xf -) || exit 1 + cd ${BASE_DIRECTORY}/../website || exit 1 + tar cf - images | (cd ${PREFIX}/share; tar xf -) || exit 1 +} + function build_all { build_binutils @@ -244,6 +260,7 @@ build_gcc build_gdb build_gdbstub + build_docs } case $BUILD_OPT in @@ -260,6 +277,7 @@ gcc) build_gcc ;; gdb) build_gdb ;; gdbstub) build_gdbstub ;; + docs) build_docs ;; all) build_all ;; *) echo "Please enter a valid build option." ;; esac This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |