summaryrefslogtreecommitdiff
path: root/licensecheck/checkfile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'licensecheck/checkfile.sh')
-rwxr-xr-xlicensecheck/checkfile.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/licensecheck/checkfile.sh b/licensecheck/checkfile.sh
new file mode 100755
index 0000000..4b7a9d9
--- /dev/null
+++ b/licensecheck/checkfile.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+export name="$2"
+export name=${name##../../client-data/}
+
+grep " $name " $1 >/dev/null
+if [ "$?" != 0 ]; then
+ echo "Missing license for $name"
+fi