aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html/html.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-09-15 18:17:20 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-09-15 19:34:30 +0200
commitc478111a98a390319c7af0b6784df9fa700840bc (patch)
tree96266efc4fe45a51ea6b771ab32e9cff4382e733 /pkg/html/html.go
parent2d37b9667e60ae1270304f660cb7c7883626255e (diff)
pkg/build, pkg/html: move generation logic into separate scripts
Mentions of "// Code generated ... DO NOT EDIT." in these Go files somehow prevents golangci-lint from checking them. And github treats them as auto-generated as well. I guess some code somewhere has some imprecise heuristics. Move generation into separate shell scripts. Also cleaner.
Diffstat (limited to 'pkg/html/html.go')
-rw-r--r--pkg/html/html.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/pkg/html/html.go b/pkg/html/html.go
index 55df6d977..6f3779261 100644
--- a/pkg/html/html.go
+++ b/pkg/html/html.go
@@ -1,14 +1,7 @@
// Copyright 2018 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-//go:generate bash -c "echo '// Code generated by pkg/html/html.go. DO NOT EDIT.' > generated.go"
-//go:generate bash -c "echo 'package html' >> generated.go"
-//go:generate bash -c "echo 'const style = `' >> generated.go"
-//go:generate bash -c "cat ../../dashboard/app/static/style.css >> generated.go"
-//go:generate bash -c "echo '`' >> generated.go"
-//go:generate bash -c "echo 'const js = `' >> generated.go"
-//go:generate bash -c "cat ../../dashboard/app/static/common.js >> generated.go"
-//go:generate bash -c "echo '`' >> generated.go"
+//go:generate ./gen.sh
package html