Overview
Comment: | Added support for performing post-build actions
Added post-build action "sdk" for building a KitDLL SDK if KitDLL building was requested |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | tcl-sdk-support |
Files: | files | file ages | folders |
SHA1: |
2906d8d4b01c8b89c09cd4ce958291fb |
User & Date: | rkeene on 2011-11-14 04:23:33 |
Other Links: | branch diff | manifest | tags |
Context
2011-11-14
| ||
04:29 | Updated to ignore created SDKs when looking for created kits during test builds check-in: cb0c37e35e user: rkeene tags: tcl-sdk-support | |
04:23 |
Added support for performing post-build actions
Added post-build action "sdk" for building a KitDLL SDK if KitDLL building was requested check-in: 2906d8d4b0 user: rkeene tags: tcl-sdk-support | |
02:32 | Create new branch named "tcl-sdk-support" check-in: d5e4b44ef6 user: rkeene tags: tcl-sdk-support | |
Changes
Added common/post/sdk.sh version [2a53429c2b].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | #! /bin/bash if [ -z "${TCLVERS}" ]; then echo 'This script is not meant to be run directly.' >&2 exit 1 fi if [ "${KITTARGET}" != "kitdll" ]; then exit 0 fi rm -rf '__tmp__' mkdir '__tmp__' mkdir '__tmp__/include' mkdir '__tmp__/lib' cp 'tcl/inst/lib/tclConfig.sh' '__tmp__/lib/' cp 'tcl/inst/include'/* '__tmp__/include/' cp 'tcl/inst/lib'/libtclstub* '__tmp__/lib/' if [ -f 'tk/inst/lib/tkConfig.sh' ]; then cp 'tk/inst/lib/tkConfig.sh' '__tmp__/lib/' cp 'tk/inst/include'/* '__tmp__/include/' cp 'tk/inst/lib'/libtkstub* '__tmp__/lib/' fi cp libtclkit* '__tmp__/lib/' ( cd '__tmp__/lib' || exit 1 for libfile in *.dll.a; do if [ ! -f "${libfile}" ]; then continue fi newlibfile="$(basename "${libfile}" .dll.a).lib" mv "${libfile}" "${newlibfile}" done for kitlibfile in libtclkit*; do if echo "${kitlibfile}" | grep '\.tar\.gz' >/dev/null; then continue fi break done kitlinker="$(echo "${kitlibfile}" | sed 's@^lib@-l@;s@\.[^\.]*$@@')" sed 's|'"$(dirname "$(dirname "$(pwd)")")"'/tcl/inst|${TCLKIT_SDK_DIR}|g;s|^TCL_SHARED_BUILD=.*$|TCL_SHARED_BUILD=1|;s|^TCL_LIB_FILE=.*$|TCL_LIB_FILE='"${kitlibfile}"'|;s|-ltcl[^s][a-fA-F0-9\.]*|'"${kitlinker}"'|' 'tclConfig.sh' > 'tclConfig.sh.new' ( cat << _EOF_ if [ -z "\${TCLKIT_SDK_DIR}" ]; then TCLKIT_SDK_DIR="./libtclkit-sdk-${TCLVERS}" fi _EOF_ cat 'tclConfig.sh.new' ) > 'tclConfig.sh' rm -f 'tclConfig.sh.new' if [ -f 'tkConfig.sh' ]; then sed 's|'"$(dirname "$(dirname "$(pwd)")")"'/tk/inst|${TCLKIT_SDK_DIR}|g;s|^TK_SHARED_BUILD=.*$|TK_SHARED_BUILD=1|;s|^TK_LIB_FILE=.*$|TK_LIB_FILE='"${kitlibfile}"'|;s|-ltk[^s][a-fA-F0-9\.]*|'"${kitlinker}"'|' 'tkConfig.sh' > 'tkConfig.sh.new' ( cat << _EOF_ if [ -z "\${TCLKIT_SDK_DIR}" ]; then TCLKIT_SDK_DIR="./libtclkit-sdk-${TCLVERS}" fi _EOF_ cat 'tkConfig.sh.new' ) > 'tkConfig.sh' rm -f 'tkConfig.sh.new' fi ) ( cd '__tmp__' || exit 1 mkdir "libtclkit-sdk-${TCLVERS}" mv 'lib' 'include' "libtclkit-sdk-${TCLVERS}/" tar -cf - "libtclkit-sdk-${TCLVERS}" | gzip -9c > "../libtclkit-sdk-${TCLVERS}.tar.gz" ) rm -rf '__tmp__' exit 0 |
Modified kitcreator from [ed95cc9314] to [e5a4f5c30e].
︙ | ︙ | |||
165 166 167 168 169 170 171 172 173 | if [ "${buildfailed}" != "0" ]; then echo 'WARNING: Build is likely incomplete or failed.' >&2 fi cp 'kitsh/build'/kitsh-*/libtclkit* . >/dev/null 2>/dev/null cp 'kitsh/build'/kitsh-*/kit "tclkit-${TCLVERS}" >/dev/null 2>/dev/null exit "${buildfailed}" | > > > > > > > > | 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | if [ "${buildfailed}" != "0" ]; then echo 'WARNING: Build is likely incomplete or failed.' >&2 fi cp 'kitsh/build'/kitsh-*/libtclkit* . >/dev/null 2>/dev/null cp 'kitsh/build'/kitsh-*/kit "tclkit-${TCLVERS}" >/dev/null 2>/dev/null for postscript in common/post/*; do if [ ! -f "${postscript}" ]; then continue fi "${postscript}" done exit "${buildfailed}" |