Skip to content

Commit

Permalink
build: generate gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Jun 2, 2024
1 parent bd1e748 commit 170fac8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ yarn-error.log*
pnpm-debug.log*
dist
build-aya/

src/guide/haskeller-tutorial.md
src/guide/anqur-story.md
src/guide/ext-types.md
2 changes: 1 addition & 1 deletion aya/guide/prover-tutorial.aya.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ This will need some advanced proving techniques that are beyond the scope of thi
simple tutorial, so I'll skim them. First, we need type-safe coercion:

```aya
def cast (p : A ↑ = B) : A -> B => coe 0 1 (fn i => p i)
def cast (p : A ↑ = B) : A -> B => coe 0 1 (fn i => p i)
```

Then, from `q : b = c` we construct the equivalence `(a = b) = (a = c)`
Expand Down
6 changes: 6 additions & 0 deletions scripts/build-aya.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ walk(".", (file) => {
});
// Put preprocessed files to src/
process.chdir("../build-aya");
let gitignore = "";
walk(".", (file) => {
console.log("Moving: " + file);
const dest = path.resolve("../src", file);
Expand All @@ -52,4 +53,9 @@ walk(".", (file) => {
if (err) throw err;
});
});
gitignore += file + "\n";
});

fs.writeFile("../src/.gitignore", gitignore, (err) => {
if (err) throw err;
});
2 changes: 2 additions & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
guide/haskeller-tutorial.md
guide/prover-tutorial.md

0 comments on commit 170fac8

Please sign in to comment.