The build tags are written into the resulting go files literally, e.g.
a call like
genfileembed -build-tags "linux,386 darwin,!cgo"
is written as
// +build linux,386 darwin,!cgo
to the resulting files.
Change-Id: Ic8c7e827e3040a33fe3b920c1aaa1551f902a491
Offer a choice from which go-file the #fileembed pattern is read. The
default is still "fileembed.go".
Change-Id: Ida98850162adec33a6555b09ad320bd9ee573b8d
Don't just trust all zembed_*.go files to be wanted. Instead, we now
ask genfileembed to write out its output files to stderr, parse that,
and add those to our set of wanted files. Then when we look for
unwanted files that aren't known outputs that now also potentially
includes zembed_*.go files.
This fixes a JavaScript breakage from when Aaron renamed some
JavaScript files recently.
Turns out I had 4 such files that were stale outputs.
In other news, I hereby declare a moratorium on updates to make.go.
It has become disgusting and is need of cleanup love before it is
disgraced further.
Change-Id: Ia1432d21ce486bfbca9e3c9db6f1852b859ebfc0
The -fileembed-package flag makes genfileembed
play nicely with goven. If you use goven to
vendorize fileembed, the fileembed package path
changes (to be relative to the current project).
With -fileembed-package, you can make the
generated code import the correct (vendorized)
fileembed package.
The -all flag forces processing of all files,
not just modified files. This is useful when
changing -import-prefix, when
working on a filesystem with unreliable mtimes,
or when being neurotic/defensive in build scripts.
Addresses https://code.google.com/p/camlistore/issues/detail?id=137
Change-Id: I54215429dabd02bc1fa72c6718e1cabccb1cffaf
This CL proposes 4 changes:
1) When making the embeds, any .html files in newui is rewwritten
on the fly so that the resulting embed uses all.js instead of
individual .js files. all.js is the only javascript file embedded
for newui.
2) Various bugs and paths in the newui/*.js files were fixed so that
everything works when using all.js
3) pkg/server/ui.go was modified so that all features from ui should
now have an equivalent in newui, that is served through ui/new/.
In a next step, we can move back everything from newui/ into ui/ and
completely get rid of the old ui.
4) The published gallery now uses closure too.
In another next step, we should probably work on serving its static
part directly from an .html file or (include it in the zembed somehow?)
instead of generating it at every request. Or at least cache it?
This commit includes the zembeds in newui, except for zembed_all.js.go
since it is large and it would take a lot of space in the git history
everytime we change it.
The plan is to roll-sum it into chunks to address that problem.
Change-Id: I381d8ddf3a2bbe37e3c4b1c4bf423f16beffaaf4
large .js files).
We will need this when we start getting large js
files generated when using the closure library.
Change-Id: Iaecacd54c3d08637918b1afd420fb90f1a84aabb