1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00
awx/tools/audit-api-license.sh
2016-07-12 16:30:30 -04:00

21 lines
603 B
Bash
Executable File

#!/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 --------------"