1
0

move script out from internal

This commit is contained in:
Arpad Ryszka 2025-10-07 13:25:53 +02:00
parent 4a8d7282b2
commit 3c6b9fa9f0
10 changed files with 16 additions and 16 deletions

View File

@ -20,25 +20,25 @@ promote-to-tags: tag/promote.gen.go
go fmt tag/* go fmt tag/*
tag/block.gen.go: $(SOURCES) tag.block.txt tag/block.gen.go: $(SOURCES) tag.block.txt
go run internal/script/generate-tags.go < tag.block.txt > tag/block.gen.go go run script/generate-tags.go < tag.block.txt > tag/block.gen.go
tag/inline.gen.go: $(SOURCES) tag.inline.txt tag/inline.gen.go: $(SOURCES) tag.inline.txt
go run internal/script/generate-tags.go Inline < tag.inline.txt > tag/inline.gen.go go run script/generate-tags.go Inline < tag.inline.txt > tag/inline.gen.go
tag/inlinechildren.gen.go: $(SOURCES) tag.inlinechildren.txt tag/inlinechildren.gen.go: $(SOURCES) tag.inlinechildren.txt
go run internal/script/generate-tags.go InlineChildren < tag.inlinechildren.txt > tag/inlinechildren.gen.go go run script/generate-tags.go InlineChildren < tag.inlinechildren.txt > tag/inlinechildren.gen.go
tag/void.block.gen.go: $(SOURCES) tag.void.block.txt tag/void.block.gen.go: $(SOURCES) tag.void.block.txt
go run internal/script/generate-tags.go Void < tag.void.block.txt > tag/void.block.gen.go go run script/generate-tags.go Void < tag.void.block.txt > tag/void.block.gen.go
tag/void.inline.gen.go: $(SOURCES) tag.void.inline.txt tag/void.inline.gen.go: $(SOURCES) tag.void.inline.txt
go run internal/script/generate-tags.go Void Inline < tag.void.inline.txt > tag/void.inline.gen.go go run script/generate-tags.go Void Inline < tag.void.inline.txt > tag/void.inline.gen.go
tag/script.gen.go: $(SOURCES) tag.script.txt tag/script.gen.go: $(SOURCES) tag.script.txt
go run internal/script/generate-tags.go ScriptContent < tag.script.txt > tag/script.gen.go go run script/generate-tags.go ScriptContent < tag.script.txt > tag/script.gen.go
tag/promote.gen.go: $(SOURCES) promote-to-tags.txt tag/promote.gen.go: $(SOURCES) promote-to-tags.txt
go run internal/script/promote-to-tags.go < promote-to-tags.txt > tag/promote.gen.go go run script/promote-to-tags.go < promote-to-tags.txt > tag/promote.gen.go
fmt: $(SOURCES) tags fmt: $(SOURCES) tags
go fmt ./... go fmt ./...

View File

@ -45,7 +45,7 @@ func main() {
_, err = fmt.Fprintf(os.Stdout, f, a...) _, err = fmt.Fprintf(os.Stdout, f, a...)
} }
printf("// generated by ../internal/script/generate-tags.go\n") printf("// generated by ../script/generate-tags.go\n")
printf("\n") printf("\n")
printf("package tag\n") printf("package tag\n")
printf("import \"code.squareroundforest.org/arpio/html\"\n") printf("import \"code.squareroundforest.org/arpio/html\"\n")

View File

@ -44,7 +44,7 @@ func main() {
_, err = fmt.Fprintf(os.Stdout, f, a...) _, err = fmt.Fprintf(os.Stdout, f, a...)
} }
printf("// generated by ../internal/script/promote-to-tags.go\n") printf("// generated by ../script/promote-to-tags.go\n")
printf("\n") printf("\n")
printf("package tag\n") printf("package tag\n")
printf("import \"code.squareroundforest.org/arpio/html\"\n") printf("import \"code.squareroundforest.org/arpio/html\"\n")

View File

@ -1,4 +1,4 @@
// generated by ../internal/script/generate-tags.go // generated by ../script/generate-tags.go
package tag package tag

View File

@ -1,4 +1,4 @@
// generated by ../internal/script/generate-tags.go // generated by ../script/generate-tags.go
package tag package tag

View File

@ -1,4 +1,4 @@
// generated by ../internal/script/generate-tags.go // generated by ../script/generate-tags.go
package tag package tag

View File

@ -1,4 +1,4 @@
// generated by ../internal/script/promote-to-tags.go // generated by ../script/promote-to-tags.go
package tag package tag

View File

@ -1,4 +1,4 @@
// generated by ../internal/script/generate-tags.go // generated by ../script/generate-tags.go
package tag package tag

View File

@ -1,4 +1,4 @@
// generated by ../internal/script/generate-tags.go // generated by ../script/generate-tags.go
package tag package tag

View File

@ -1,4 +1,4 @@
// generated by ../internal/script/generate-tags.go // generated by ../script/generate-tags.go
package tag package tag