From f674102cace53110c4ec38b1d521fe67d887c922 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 17 Mar 2008 10:37:35 +0000 Subject: Added missing #\!/bin/sh --- tools/MocList | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tools/MocList') diff --git a/tools/MocList b/tools/MocList index 639b668..3a8afc5 100755 --- a/tools/MocList +++ b/tools/MocList @@ -1,9 +1,12 @@ +#!/bin/sh # -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*- -if [ "$1" = "cc" ]; then +if grep "#define USE_GUI" ../config.h > /dev/null ; then + if [ "$1" = "cc" ]; then grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.cc/g'| xargs echo; -elif [ "$1" = "o" ]; then + elif [ "$1" = "o" ]; then grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.o/g'| xargs echo; -elif [ "$1" = "h" ]; then + elif [ "$1" = "h" ]; then grep "Q_OBJECT" *.h | cut -d: -f1 | cut -d'/' -f3 | xargs echo; + fi fi -- cgit v1.2.3