move script out from internal
This commit is contained in:
parent
4a8d7282b2
commit
3c6b9fa9f0
14
Makefile
14
Makefile
@ -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 ./...
|
||||||
|
|||||||
@ -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")
|
||||||
@ -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")
|
||||||
@ -1,4 +1,4 @@
|
|||||||
// generated by ../internal/script/generate-tags.go
|
// generated by ../script/generate-tags.go
|
||||||
|
|
||||||
package tag
|
package tag
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// generated by ../internal/script/generate-tags.go
|
// generated by ../script/generate-tags.go
|
||||||
|
|
||||||
package tag
|
package tag
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// generated by ../internal/script/generate-tags.go
|
// generated by ../script/generate-tags.go
|
||||||
|
|
||||||
package tag
|
package tag
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// generated by ../internal/script/promote-to-tags.go
|
// generated by ../script/promote-to-tags.go
|
||||||
|
|
||||||
package tag
|
package tag
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// generated by ../internal/script/generate-tags.go
|
// generated by ../script/generate-tags.go
|
||||||
|
|
||||||
package tag
|
package tag
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// generated by ../internal/script/generate-tags.go
|
// generated by ../script/generate-tags.go
|
||||||
|
|
||||||
package tag
|
package tag
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// generated by ../internal/script/generate-tags.go
|
// generated by ../script/generate-tags.go
|
||||||
|
|
||||||
package tag
|
package tag
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user