Skip to content

Commit

Permalink
Add make json (#69)
Browse files Browse the repository at this point in the history
* Add make json

* make json less destructive
  • Loading branch information
AlexKnauth authored Apr 18, 2024
1 parent 6430458 commit 142c90b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

all: xml json

xml:
tidy -iqm -wrap 0 -xml splits/*/*.lss splits/*/*.lsl

json:
for i in splits/*/*.ls1l; do \
jq --indent 4 . "$$i" > "$${i}.tmp" && mv "$${i}.tmp" "$$i" ; \
done

clean:
rm splits/*/*.tmp
2 changes: 1 addition & 1 deletion splits/current/layout-web.ls1l
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@
1
]
}
}
}
2 changes: 1 addition & 1 deletion splits/hits/layout-web.ls1l
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,4 @@
1
]
}
}
}

0 comments on commit 142c90b

Please sign in to comment.