chore: fix license / licence naming

This commit is contained in:
aquint-zama
2021-12-09 11:26:15 +01:00
committed by Alex Quint
parent 9be72a0ace
commit 7585d23396
6 changed files with 28 additions and 180 deletions

View File

@@ -2,14 +2,14 @@
set -e
BASENAME="licences"
LICENCE_DIRECTORY="licences"
BASENAME="licenses"
LICENSE_DIRECTORY="licenses"
CHECK=0
DIFF_TOOL="diff --ignore-all-space --ignore-tab-expansion --ignore-space-change --ignore-all-space --ignore-blank-lines --strip-trailing-cr"
TMP_VENV_PATH="/tmp/tmp_venv"
DO_USER_LICENCES=1
DO_DEV_LICENCES=1
OUTPUT_DIRECTORY="${LICENCE_DIRECTORY}"
DO_USER_LICENSES=1
DO_DEV_LICENSES=1
OUTPUT_DIRECTORY="${LICENSE_DIRECTORY}"
while [ -n "$1" ]
do
@@ -39,13 +39,13 @@ else
exit 255
fi
if [ $DO_USER_LICENCES -eq 1 ]
if [ $DO_USER_LICENSES -eq 1 ]
then
# Licences for user (install in a temporary venv)
echo "Doing licences for user"
#Licenses for user (install in a temporary venv)
echo "Doing licenses for user"
FILENAME="${BASENAME}_${OS}_user.txt"
LICENSES_FILENAME="${LICENCE_DIRECTORY}/${FILENAME}"
LICENSES_FILENAME="${LICENSE_DIRECTORY}/${FILENAME}"
NEW_LICENSES_FILENAME="${OUTPUT_DIRECTORY}/${FILENAME}"
rm -rf $TMP_VENV_PATH/tmp_venv
@@ -70,13 +70,13 @@ then
fi
fi
if [ $DO_DEV_LICENCES -eq 1 ]
if [ $DO_DEV_LICENSES -eq 1 ]
then
# Licences for developer (install in a temporary venv)
echo "Doing licences for developper"
# Licenses for developer (install in a temporary venv)
echo "Doing licenses for developper"
FILENAME="${BASENAME}_${OS}_dev.txt"
LICENSES_FILENAME="${LICENCE_DIRECTORY}/${FILENAME}"
LICENSES_FILENAME="${LICENSE_DIRECTORY}/${FILENAME}"
NEW_LICENSES_FILENAME="${OUTPUT_DIRECTORY}/${FILENAME}"
rm -rf $TMP_VENV_PATH/tmp_venv
@@ -99,7 +99,7 @@ then
fi
fi
rm -f ${LICENCE_DIRECTORY}/licences_*.txt.tmp
rm -f ${LICENSE_DIRECTORY}/licenses_*.txt.tmp
rm -rf $TMP_VENV_PATH/tmp_venv
echo "End of licence script"
echo "End of license script"