Move auto generated source to a package

This commit is contained in:
Jakob Borg 2014-01-26 15:02:06 +01:00
parent 81d5d1d4a6
commit b1ba976122
4 changed files with 9 additions and 8 deletions

6
auto/gui.files.go Normal file

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@ fi
if [[ -z $1 ]] ; then
go build -ldflags "-X main.Version $version"
elif [[ $1 == "embed" ]] ; then
embedder main gui > gui.files.go \
embedder auto gui > auto/gui.files.go \
&& go build -ldflags "-X main.Version $version"
elif [[ $1 == "tar" ]] ; then
go build -ldflags "-X main.Version $version" \

File diff suppressed because one or more lines are too long

3
gui.go
View File

@ -11,6 +11,7 @@ import (
"sync"
"time"
"github.com/calmh/syncthing/auto"
"github.com/calmh/syncthing/model"
"github.com/codegangsta/martini"
"github.com/cratonica/embed"
@ -26,7 +27,7 @@ func startGUI(addr string, m *model.Model) {
router.Get("/rest/need", restGetNeed)
router.Get("/rest/system", restGetSystem)
fs, err := embed.Unpack(Resources)
fs, err := embed.Unpack(auto.Resources)
if err != nil {
panic(err)
}