ngx-export-distribution 0.5.4.2 → 0.5.4.3
raw patch · 3 files changed
+19/−12 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Changelog.md +6/−0
- ngx-export-distribution.cabal +1/−1
- nhm-tool.hs +12/−11
Changelog.md view
@@ -1,3 +1,9 @@+### 0.5.4.3++- *nhm-tool*: fix bios shell script in generated *hie.yaml* for environments+ where */bin/sh* is not a link to */bin/bash* but rather the classic *Bourne+ Shell* or *dash* like in Ubuntu. More improvements hinted by *ShellCheck*.+ ### 0.5.4.2 - *nhm-tool*: use cradle *bios* in generated *hie.yaml*. The bios shell script
ngx-export-distribution.cabal view
@@ -1,5 +1,5 @@ name: ngx-export-distribution-version: 0.5.4.2+version: 0.5.4.3 synopsis: Build custom libraries for Nginx Haskell module description: Build custom libraries for <https://github.com/lyokha/nginx-haskell-module Nginx Haskell module>.
nhm-tool.hs view
@@ -603,20 +603,21 @@ \ shell: |\n\ \ if [ -L ", ghcEnvLnk, " ]\n\ \ then\n\- \ echo -e \""- ,T.replace "-" "\\x2d" $ T.pack $ intercalate "\\n" initDataGhcOptions- ,"\" > $HIE_BIOS_OUTPUT\n\- \ for file in $(find * -name '[A-Z]*.hs')\n\- \ do\n\- \ if grep -q \"^\\s*module $(echo $file |\n\- \ sed 's/^\\(.*\\)\\..*/\\1/;s/\\//./g')\" $file\n\+ \ printf \""+ ,T.replace "-" "\\055" $ T.pack $ intercalate "\\n" initDataGhcOptions+ ,"\\n\" > \"$HIE_BIOS_OUTPUT\"\n\+ \ find . -name '[A-Z]*.hs' -exec sh -c '\n\+ \ file=$(echo \"$1\" | cut -c 3-)\n\+ \ if grep -q \"^\\s*module $(echo \"$file\" |\n\+ \ sed '\\''s/^\\(.*\\)\\..*/\\1/;s/\\//./g'\\'')\" \+ \\"$file\"\n\ \ then\n\- \ echo $file >> $HIE_BIOS_OUTPUT\n\+ \ echo \"$file\" >> \"$HIE_BIOS_OUTPUT\"\n\ \ fi\n\- \ done\n\+ \ ' sh {} \\;\n\ \ else\n\- \ echo -n \"Ghc environment file wasn't found, \"`\n\- \ `\"run \\\"make env\\\" and restart \+ \ echo \"Ghc environment file wasn't found, \"`\n\+ \ `\"run \\\"make env\\\" and restart \ \language server.\" >&2\n\ \ exit 1\n\ \ fi\n"