Overview
| Comment: | Updated to report failure if building of Tk fails |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
4c532aef859916504430af11e595d174 |
| User & Date: | rkeene on 2010-09-26 04:42:44 |
| Other Links: | manifest | tags |
Context
|
2010-09-26
| ||
| 04:42 | Added back safe successful exits check-in: baaf0c5896 user: rkeene tags: trunk | |
| 04:42 | Updated to report failure if building of Tk fails check-in: 4c532aef85 user: rkeene tags: trunk | |
| 04:42 | KitCreator 0.2.3.x check-in: 98787f352d user: rkeene tags: trunk, 0.2.3 | |
Changes
Modified tk/build.sh from [3efb154a49] to [9f9636ed5a].
| ︙ | ︙ | |||
50 51 52 53 54 55 56 |
if [ ! -d '../buildsrc' ]; then
gzip -dc "../${SRC}" | tar -xf -
else
cp -rp ../buildsrc/* './'
fi
cd "${BUILDDIR}" || exit 1
| | > > > > | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
if [ ! -d '../buildsrc' ]; then
gzip -dc "../${SRC}" | tar -xf -
else
cp -rp ../buildsrc/* './'
fi
cd "${BUILDDIR}" || exit 1
for dir in unix win macosx __fail__; do
if [ "${dir}" = "__fail__" ]; then
exit 1
fi
# Remove previous directory's "tkConfig.sh" if found
rm -f 'tkConfig.sh'
cd "${BUILDDIR}/${dir}" || exit 1
if [ "${dir}" = "win" ]; then
# Statically link Tk to Tclkit if we are compiling for
|
| ︙ | ︙ | |||
72 73 74 75 76 77 78 |
else
echo "Running: ./configure --enable-shared --disable-symbols --prefix=\"${INSTDIR}\" --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}"
./configure --enable-shared --disable-symbols --prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
fi
${MAKE:-make} || continue
| | < < | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
else
echo "Running: ./configure --enable-shared --disable-symbols --prefix=\"${INSTDIR}\" --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}"
./configure --enable-shared --disable-symbols --prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
fi
${MAKE:-make} || continue
${MAKE:-make} install || continue
# Update pkgIndex to load libtk from the local directory rather
# than the parent directory
for pkgIndex in "${INSTDIR}"/lib/tk*/pkgIndex.tcl; do
sed 's@ \.\. @ @g' "${pkgIndex}" > "${pkgIndex}.new"
mv "${pkgIndex}.new" "${pkgIndex}"
done
mkdir "${OUTDIR}/lib" || exit 1
cp -r "${INSTDIR}/lib"/tk*/ "${OUTDIR}/lib/"
cp -r "${INSTDIR}/lib"/libtk* "${OUTDIR}/lib"/tk*/
rm -rf "${OUTDIR}/lib"/tk*/demos
"${STRIP:-strip}" -g "${OUTDIR}"/lib/tk*/*.so >/dev/null 2>/dev/null
find "${OUTDIR}" -type f -name '*.a' | xargs rm -f >/dev/null 2>/dev/null
break
done
) || exit 1
exit 0
|