Add check for @BIN_INSTALL_DIR@/tqt-replace-stream

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1224643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent b461bd5e52
commit bed8233bbf

@ -4,6 +4,7 @@
# Very simple moc wrapper, for using with cmake # Very simple moc wrapper, for using with cmake
# #
if [ -f @BIN_INSTALL_DIR@/tqt-replace-stream ]; then
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: tmoc <input_file> -o <out_file>" echo "Usage: tmoc <input_file> -o <out_file>"
else else
@ -14,3 +15,7 @@ else
sed "/#include <qmetaobject.h>/ i #undef QT_NO_COMPAT\n#include \"${input_file}\"" \ sed "/#include <qmetaobject.h>/ i #undef QT_NO_COMPAT\n#include \"${input_file}\"" \
> "${out_file}" > "${out_file}"
fi fi
else
echo "ERROR: @BIN_INSTALL_DIR@/tqt-replace-stream is not available. tmoc will fail!"
exit 1;
fi

Loading…
Cancel
Save