mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-19 05:21:04 +01:00
changes:
- added working upload formm which can also create an upload
- cleaned up auth.go
- enhanced server/SetupAuthStore() to also look up form ids
- added form template (put into .go file by Makefile
This commit is contained in:
9
Makefile
9
Makefile
@@ -29,7 +29,7 @@ VERSION := $(if $(filter $(BRANCH), development),$(version)-$(BRANCH)-$(COMMIT)
|
||||
HAVE_POD := $(shell pod2text -h 2>/dev/null)
|
||||
DAEMON := cenod
|
||||
|
||||
all: buildlocal buildlocalctl
|
||||
all: cmd/formtemplate.go buildlocal buildlocalctl
|
||||
|
||||
buildlocalctl:
|
||||
make -C upctl
|
||||
@@ -80,3 +80,10 @@ show-versions: buildlocal
|
||||
|
||||
goupdate:
|
||||
go get -t -u=patch ./...
|
||||
|
||||
cmd/%.go: templates/%.tpl
|
||||
echo "package cmd" > cmd/$*.go
|
||||
echo >> cmd/$*.go
|
||||
echo "const formtemplate = \`" >> cmd/$*.go
|
||||
cat templates/$*.tpl >> cmd/$*.go
|
||||
echo "\`" >> cmd/$*.go
|
||||
|
||||
Reference in New Issue
Block a user