utils/installwatch: initial commit
[grimoire-witchcraft.git] / utils / installwatch / PRE_BUILD
blob6a53fe5f0bef2d6e9380d617d245f72bb675d057
1 default_pre_build  &&
2 cd $SOURCE_DIRECTORY  &&
3 chmod a+w Makefile    &&
4 chmod a+w installwatch.c  &&
5 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-ld-preload.diff" &&
6 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-errno.diff"  &&
7 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-buffer.diff" &&
8 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-cflags.diff" &&
9 patch -p1 < "${SCRIPT_DIRECTORY}/installwatch-syslog.diff" &&
10 if [[ "$(uname)" == "GNU/kFreeBSD" ]]
11 then
12 patch -p0 < "${SCRIPT_DIRECTORY}/installwatch-glibc-bsd.diff"