1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00
awx/tools/audit-api-license.sh

21 lines
603 B
Bash
Raw Normal View History

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