summaryrefslogtreecommitdiff
path: root/tools/MocList
diff options
context:
space:
mode:
authordeva <deva>2009-11-22 09:56:08 +0000
committerdeva <deva>2009-11-22 09:56:08 +0000
commit366701768b4e7e31e3d96071700783a49bcbd078 (patch)
treeaa8a1c9493c8f46d36ee1f3239d9b59361692139 /tools/MocList
parent28630efa5e905f501f267e5e105d184ec5dd379a (diff)
Added editor for automated chopping up of audiofiles into samples.
Diffstat (limited to 'tools/MocList')
-rwxr-xr-xtools/MocList9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/MocList b/tools/MocList
new file mode 100755
index 0000000..639b668
--- /dev/null
+++ b/tools/MocList
@@ -0,0 +1,9 @@
+# -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*-
+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
+ grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.o/g'| xargs echo;
+elif [ "$1" = "h" ]; then
+ grep "Q_OBJECT" *.h | cut -d: -f1 | cut -d'/' -f3 | xargs echo;
+fi
+