summaryrefslogtreecommitdiffstats
path: root/dgbuilder/tools/getModuleName.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dgbuilder/tools/getModuleName.sh')
-rwxr-xr-xdgbuilder/tools/getModuleName.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/dgbuilder/tools/getModuleName.sh b/dgbuilder/tools/getModuleName.sh
new file mode 100755
index 00000000..cf0db193
--- /dev/null
+++ b/dgbuilder/tools/getModuleName.sh
@@ -0,0 +1,2 @@
+module=$(cat $1|egrep "module .*{"|awk '{print $2}'|sed -e 's/{//g')
+echo $module