pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/haskell
Module Name: pkgsrc
Committed By: pho
Date: Thu Oct 26 07:07:47 UTC 2023
Modified Files:
pkgsrc/mk/haskell: build-type.awk
Log Message:
mk/haskell/build-type.awk: Deal with CRLF newlines
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/mk/haskell/build-type.awk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/haskell/build-type.awk
diff -u pkgsrc/mk/haskell/build-type.awk:1.3 pkgsrc/mk/haskell/build-type.awk:1.4
--- pkgsrc/mk/haskell/build-type.awk:1.3 Mon Feb 7 02:43:42 2022
+++ pkgsrc/mk/haskell/build-type.awk Thu Oct 26 07:07:47 2023
@@ -1,4 +1,4 @@
-# $NetBSD: build-type.awk,v 1.3 2022/02/07 02:43:42 pho Exp $
+# $NetBSD: build-type.awk,v 1.4 2023/10/26 07:07:47 pho Exp $
#
# Extract the field "Build-Type" out of a Cabal package description.
#
@@ -10,6 +10,7 @@ BEGIN {
tolower($1) ~ /^build-type:/ {
if ($2) {
found = 1;
+ gsub("\r", "", $2); # Some .cabal files have CRLF newlines.
print tolower($2);
exit
}
Home |
Main Index |
Thread Index |
Old Index