makeKDEWrapper: allow impure wrappers

This commit is contained in:
Thomas Tuegel 2015-10-17 09:34:11 -05:00
parent fb375f1a2e
commit 300b5eb7ed

View File

@ -1,15 +1,23 @@
makeKDEWrapper() {
KSERVICE_BUILD_KDESYCOCA=${KDESYCOCA:+1}
local old="$1"
local new="$2"
shift
shift
if [[ -z "$KDE_WRAPPER_IMPURE" ]]; then
KSERVICE_BUILD_KDESYCOCA=${KDESYCOCA:+1}
makeQtWrapper "$old" "$new" ${KDESYCOCA:+--set KDESYCOCA "$KDESYCOCA"} "$@"
else
makeQtWrapper "$old" "$new" "$@"
fi
}
wrapKDEProgram() {
KSERVICE_BUILD_KDESYCOCA=${KDESYCOCA:+1}
local prog="$1"
shift
if [[ -z "$KDE_WRAPPER_IMPURE" ]]; then
KSERVICE_BUILD_KDESYCOCA=${KDESYCOCA:+1}
wrapQtProgram "$prog" ${KDESYCOCA:+--set KDESYCOCA "$KDESYCOCA"} "$@"
else
wrapQtProgram "$prog" "$@"
fi
}