1
2
3
4
5
6
7
8
9
10
11
12
13
|
#! /bin/bash
if [ "${KITTARGET}" != "kitdll" ]; then
exit 0
fi
## DllMain is needed when building KitDLL
for filetopatch in win/tclWin32Dll.c win/tclWinInit.c; do
echo "Undefining STATIC_BUILD in \"${filetopatch}\""
sed 's@STATIC_BUILD@NEVER_STATIC_BUILD@g' "${filetopatch}" > "${filetopatch}.new" && cat "${filetopatch}.new" > "${filetopatch}"
rm -f "${filetopatch}.new"
done
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#! /usr/bin/env bash
if [ "${KITTARGET}" != "kitdll" ]; then
exit 0
fi
## DllMain is needed when building KitDLL
for filetopatch in win/tclWin32Dll.c win/tclWinInit.c; do
echo "Undefining STATIC_BUILD in \"${filetopatch}\""
sed 's@STATIC_BUILD@NEVER_STATIC_BUILD@g' "${filetopatch}" > "${filetopatch}.new" && cat "${filetopatch}.new" > "${filetopatch}"
rm -f "${filetopatch}.new"
done
|