CI: Travis: build.sh: BUILD_PROJECT: add: handling of generation of complettions

This commit is contained in:
Anton-Latukha 2020-05-27 20:13:32 +03:00
parent c752af84ef
commit fde7abfc39
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41

View File

@ -65,6 +65,17 @@ allowInconsistentDependencies=${allowInconsistentDependencies:-'false'}
ghcjsTmpLogFile=${ghcjsTmpLogFile:-'/tmp/ghcjsTmpLogFile.jog'}
ghcjsLogTailLength=${ghcjsLogTailLength:-'10000'}
if [ "$generateOptparseApplicativeCompletion" = 'true' ]
then
# NOTE: Enable shell complition generation
generateOptparseApplicativeCompletion="--arg generateOptparseApplicativeCompletion $name $pkgName"
else
# NOTE: Skip the shell complition generation
generateOptparseApplicativeCompletion=''
fi
if [ "$GHCVERSION" = "ghcjs" ]
then