summaryrefslogtreecommitdiff
path: root/.tools/licensecheck.sh
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-08 01:18:18 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-08 01:18:18 -0300
commit138bd5e47de71dabaf3928389e85c8cb74f4c1dd (patch)
treef0f87ba51694be79bd20effc7642de00e647ad7f /.tools/licensecheck.sh
parent5b25b0e599a6640c2170451758ace3944ece466a (diff)
parent5e8a968dd9317c4819a79d344e0fdb34ca1f0399 (diff)
downloadclientdata-138bd5e47de71dabaf3928389e85c8cb74f4c1dd.tar.gz
clientdata-138bd5e47de71dabaf3928389e85c8cb74f4c1dd.tar.bz2
clientdata-138bd5e47de71dabaf3928389e85c8cb74f4c1dd.tar.xz
clientdata-138bd5e47de71dabaf3928389e85c8cb74f4c1dd.zip
Merge branch 'master' into legacy
This reconstructs git history.
Diffstat (limited to '.tools/licensecheck.sh')
-rwxr-xr-x.tools/licensecheck.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/.tools/licensecheck.sh b/.tools/licensecheck.sh
new file mode 100755
index 00000000..7c9b717a
--- /dev/null
+++ b/.tools/licensecheck.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+source ./.tools/init.sh
+
+clientdata_init
+
+aptget_update
+aptget_install git-core gcc ca-certificates grep
+rm -rf tools
+gitclone https://gitlab.com/themanaworld/evolved messworld-tools.git tools
+
+cd tools/CI/licensecheck
+
+./clientdata.sh >license.log
+check_error $?
+
+export RES=$(cat license.log)
+if [[ -n "${RES}" ]]; then
+ echo "Detected missing licenses."
+ cat license.log
+ echo "Estimated total missing licenses:"
+ wc -l license.log
+ exit 1
+fi