summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/MIaVAdd4
-rwxr-xr-xtools/MocList9
-rwxr-xr-xtools/MocMaker1
3 files changed, 10 insertions, 4 deletions
diff --git a/tools/MIaVAdd b/tools/MIaVAdd
index 46af5e4..990a546 100755
--- a/tools/MIaVAdd
+++ b/tools/MIaVAdd
@@ -1,3 +1,4 @@
+#!/bin/sh
# -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*-
function allfile() {
@@ -6,7 +7,7 @@ function allfile() {
echo " * $1" >> $1;
echo " *" >> $1 ;
echo " * `date`" >> $1;
- echo " * Copyright 2006 Bent Bisballe Nyeng" >> $1;
+ echo " * Copyright 2005 Bent Bisballe Nyeng" >> $1;
echo " * deva@aasimon.org" >> $1;
echo " ****************************************************************************/" >> $1;
echo "" >> $1;
@@ -27,6 +28,7 @@ function allfile() {
echo " * along with MIaV; if not, write to the Free Software" >> $1;
echo " * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA." >> $1;
echo " */" >> $1;
+ echo "#include \"config.h\"" >> $1;
}
function ccfile() {
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
diff --git a/tools/MocMaker b/tools/MocMaker
index da34900..618f399 100755
--- a/tools/MocMaker
+++ b/tools/MocMaker
@@ -1,3 +1,4 @@
+#!/bin/sh
# -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*-
echo -ne "\n"
for file in `grep "Q_OBJECT" *.h | cut -d: -f1 | cut -d'/' -f3 | xargs echo`; do echo -e "moc_${file%.h}.cpp: $file\n\t@\${MOC} $file -o moc_${file%.h}.cpp\n"; done