From: Sebastien Douheret Date: Mon, 25 Sep 2017 09:42:57 +0000 (+0200) Subject: Cosmetic fix X-Git-Tag: v0.3.1~7 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-server.git;a=commitdiff_plain;h=c1104e1be920ea11a42a873bad24e1f8f29990a6 Cosmetic fix Signed-off-by: Sebastien Douheret --- diff --git a/Makefile b/Makefile index 6acaa14..f895166 100644 --- a/Makefile +++ b/Makefile @@ -190,6 +190,7 @@ tools/syncthing: .PHONY: tools/syncthing/copytobin: @test -e $(LOCAL_TOOLSDIR)/syncthing$(EXT) -a -e $(LOCAL_TOOLSDIR)/syncthing-inotify$(EXT) || { echo "Please execute first: make tools/syncthing\n"; exit 1; } + @mkdir -p $(LOCAL_BINDIR) @cp -f $(LOCAL_TOOLSDIR)/syncthing$(EXT) $(LOCAL_TOOLSDIR)/syncthing-inotify$(EXT) $(LOCAL_BINDIR) .PHONY: help @@ -197,6 +198,7 @@ help: @echo "Main supported rules:" @echo " all (default)" @echo " build" + @echo " package" @echo " install" @echo " clean" @echo " distclean" diff --git a/main.go b/main.go index a51a7a8..c73d881 100644 --- a/main.go +++ b/main.go @@ -209,8 +209,10 @@ func xdsApp(cliCtx *cli.Context) error { return cli.NewExitError(err, -6) } - // Create and start Web Server + // Create Web Server ctx.WWWServer = webserver.New(ctx.Config, ctx.MFolders, ctx.SDKs, ctx.Log) + + // Run Web Server until exit requested (blocking call) if err = ctx.WWWServer.Serve(); err != nil { ctx.Log.Println(err) return cli.NewExitError(err, -7)