Skip to content

Commit 2e9c38b

Browse files
committed
fixup: make generate-everything.sh predicative
Due to the order in which shells do things, `find > foo` will find `foo`. This means that `generate-everything.sh` puts everything on the table including the table, resulting in a dependency cycle. This change fixes that by excluding `Cubical/Everything.agda` from "everything". Also sorts the modules alphabetically and makes `make listing` display "Checking" messages so we know what it's doing.
1 parent b150186 commit 2e9c38b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

GNUmakefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ timings: clean
3737

3838
.PHONY : listings
3939
listings: $(wildcard Cubical/**/*.agda)
40-
rm -f Cubical/Everything.agda
4140
./generate-everything.sh > Cubical/Everything.agda
42-
$(AGDA) Cubical/Everything.agda -i. -isrc --html -v0
41+
$(AGDA) Cubical/Everything.agda -i. -isrc --html -vhtml:0
4342

4443
.PHONY : clean
4544
clean:

generate-everything.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22

33
printf 'module Cubical.Everything where\n\n'
4-
find Cubical/ -type f -name "*.agda" | sed -e 's/\//./g' -e 's/\.agda$//g' -e 's/^/import /'
4+
find Cubical/ -type f -name "*.agda" '!' -path "Cubical/Everything.agda" | sort | sed -e 's/\//./g' -e 's/\.agda$//g' -e 's/^/import /'

0 commit comments

Comments
 (0)