summaryrefslogtreecommitdiffstats
path: root/tools/audit-api-license.sh
blob: 6cf93f402245975731d33f855916b1bf664fd3bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

echo "---------- requirements.txt --------------"
for each in `cat requirements/requirements.txt| awk -F= '{print $1}' | tr -d "[]"`
do
    if [ ! -f docs/licenses/$each.txt ]; then
        echo No license for $each
    fi
done
echo "---------- end requirements.txt --------------"


echo "---------- requirements_ansible.txt --------------"
for each in `cat requirements/requirements_ansible.txt| awk -F= '{print $1}' | tr -d "[]"`
do
    if [ ! -f docs/licenses/$each.txt ]; then
        echo No license for $each
    fi
done
echo "---------- end requirements_ansible.txt --------------"