Index: README ================================================================== --- README +++ README @@ -12,5 +12,16 @@ 2. Create a Tclkit for Tcl from CVS HEAD: $ ./kitcreator cvs_HEAD 3. To clean up post-build: $ ./kitcreator clean + +Environment variables: + 1. MAKE + Specifies the tool you wish to be called to build targets + from a Makefile. This script is generally more well tested + with GNU Make. + + 2. PATCH + Specifies the tool you wish to be called to apply unified + diff patches. This script is generally more well tested with + GNU Patch. Index: mk4tcl/build.sh ================================================================== --- mk4tcl/build.sh +++ mk4tcl/build.sh @@ -46,11 +46,11 @@ if [ ! -f "${patch}" ]; then continue fi echo "Applying: ${patch}" - patch -p1 < "${patch}" + ${PATCH:-patch} -p1 < "${patch}" done cd "${BUILDDIR}/unix" || exit 1 # Build static libraries for linking against Tclkit Index: tclvfs/build.sh ================================================================== --- tclvfs/build.sh +++ tclvfs/build.sh @@ -47,11 +47,11 @@ if [ ! -f "${patch}" ]; then continue fi echo "Applying: ${patch}" - patch -p1 < "${patch}" + ${PATCH:-patch} -p1 < "${patch}" done cp generic/vfs.c . # Build static version