[Git][haskell-team/haskell-devscripts][master] Support capitalization of keywords on ${CABAL_PACKAGE}.cabal
Samuel Henrique (@samueloph)
gitlab at salsa.debian.org
Sun Nov 14 15:33:29 GMT 2021
Samuel Henrique pushed to branch master at Debian Haskell Group / haskell-devscripts
Commits:
37b9b576 by Samuel Henrique at 2021-11-14T15:33:28+00:00
Support capitalization of keywords on ${CABAL_PACKAGE}.cabal
This fixes a ShellCheck FTBFS because the capitalization is "Build-Type: Simple"
- - - - -
1 changed file:
- Dh_Haskell.sh
Changes:
=====================================
Dh_Haskell.sh
=====================================
@@ -485,11 +485,11 @@ make_setup_recipe(){
# other than 'Custom'. Find out the build type and use the corresponding
# standardized Setup.hs file. For more information, see
# https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-field-build-type
- if grep -q '^build-type: \+Simple' ${CABAL_PACKAGE}.cabal; then
+ if grep -qi '^build-type: \+Simple' ${CABAL_PACKAGE}.cabal; then
setup="/usr/share/haskell-devscripts/Setup-Simple.hs"
- elif grep -q 'build-type: \+Configure' ${CABAL_PACKAGE}.cabal; then
+ elif grep -qi 'build-type: \+Configure' ${CABAL_PACKAGE}.cabal; then
setup="/usr/share/haskell-devscripts/Setup-Configure.hs"
- elif grep -q 'build-type: \+Make' ${CABAL_PACKAGE}.cabal; then
+ elif grep -qi 'build-type: \+Make' ${CABAL_PACKAGE}.cabal; then
setup="/usr/share/haskell-devscripts/Setup-Make.hs"
else
echo "Could not find a suitable Setup.hs file" >&2
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/37b9b5768181fe2349e9ee9386abdc2d78e259b0
--
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/37b9b5768181fe2349e9ee9386abdc2d78e259b0
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20211114/32eab933/attachment.htm>
More information about the Pkg-haskell-commits
mailing list