-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coq-metacoq-template: Fix line ending issues with generated code on W…
…indows
- Loading branch information
1 parent
ed3fd0c
commit b0afc73
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...q-template.1.1+8.16/files/0001-Fix-line-ending-issues-with-generated-code-on-Window.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 838930ef5983c0e19bd9e12ddb5b12cf5b367c8e Mon Sep 17 00:00:00 2001 | ||
From: Michael Soegtrop <[email protected]> | ||
Date: Fri, 30 Sep 2022 09:15:08 +0200 | ||
Subject: [PATCH] Fix line ending issues with generated code on Windows | ||
|
||
--- | ||
template-coq/update_plugin.sh | 6 ++++++ | ||
1 file changed, 6 insertions(+) | ||
|
||
diff --git a/template-coq/update_plugin.sh b/template-coq/update_plugin.sh | ||
index 9b3d2a5f..1842cfde 100755 | ||
--- a/template-coq/update_plugin.sh | ||
+++ b/template-coq/update_plugin.sh | ||
@@ -12,6 +12,12 @@ then | ||
echo "Renaming files to camelCase" | ||
(cd gen-src; ./to-lower.sh) | ||
rm -f gen-src/*.d gen-src/*.cm* | ||
+ echo "Prepare line endings for patching (for Windows)" | ||
+ for f in gen-src/*.ml* | ||
+ do | ||
+ tr -d '\r' < "$f" > tmp | ||
+ mv -f tmp $f | ||
+ done | ||
# Fix an extraction bug: wrong type annotation on eq_equivalence | ||
patch -N -p0 < extraction.patch | ||
patch -N -p0 < specFloat.patch | ||
-- | ||
2.37.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,9 @@ authors: ["Abhishek Anand <[email protected]>" | |
"Théo Winterhalter <[email protected]>" | ||
] | ||
license: "MIT" | ||
patches: [ | ||
"0001-Fix-line-ending-issues-with-generated-code-on-Window.patch" | ||
] | ||
build: [ | ||
["bash" "./configure.sh"] | ||
[make "-j" "%{jobs}%" "template-coq"] | ||
|