Makefile | 19 ------------------- all.do | 1 + gocheese.do | 2 ++ gocheese.info.do | 2 ++ test.do | 1 + www.do | 12 ++++++++++++ www.mk | 17 ----------------- diff --git a/Makefile b/Makefile deleted file mode 100644 index 32e90fb5d78d6f5109bec25a8e18da002f028229130576d26e1a2257f54f84e4..0000000000000000000000000000000000000000 --- a/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -GO ?= go -MAKEINFO ?= makeinfo - -GOPATH != pwd -VERSION != cat VERSION - -MOD = go.cypherpunks.ru/gocheese/v2 -LDFLAGS = -X main.Version=$(VERSION) - -all: gocheese gocheese.info - -gocheese: - GOPATH=$(GOPATH) go build -o gocheese -ldflags "$(LDFLAGS)" $(MOD) - -gocheese.info: *.texi - $(MAKEINFO) -o $@ gocheese.texi - -test: - GOPATH=$(GOPATH) go test $(MOD)/... diff --git a/all.do b/all.do new file mode 100644 index 0000000000000000000000000000000000000000..edfcd74f49c1cd01626a193d480c644fb47f871bad2ad067d1b9c93634ceb0b5 --- /dev/null +++ b/all.do @@ -0,0 +1 @@ +redo-ifchange gocheese gocheese.info diff --git a/gocheese.do b/gocheese.do new file mode 100644 index 0000000000000000000000000000000000000000..0140133de8043b6e9dac86d6357d58ef29e77894626aa9e1f0db7fa21252bb11 --- /dev/null +++ b/gocheese.do @@ -0,0 +1,2 @@ +redo-ifchange *.go +${GO:=go} build -o $3 -ldflags "-X main.Version=`cat VERSION`" go.cypherpunks.ru/gocheese/v2 diff --git a/gocheese.info.do b/gocheese.info.do new file mode 100644 index 0000000000000000000000000000000000000000..ae636dfcee87c95b788a17d3cf4a355f66be63dfd150d29b44d18285656fd753 --- /dev/null +++ b/gocheese.info.do @@ -0,0 +1,2 @@ +redo-ifchange *.texi +${MAKEINFO:=makeinfo} -o $3 gocheese.texi diff --git a/test.do b/test.do new file mode 100644 index 0000000000000000000000000000000000000000..775ae4c0f4467a06f46fdceafa057413270ce8b373533583e8bfba55069fcb8f --- /dev/null +++ b/test.do @@ -0,0 +1 @@ +${GO:=go} test go.cypherpunks.ru/gocheese/v2/... >&2 diff --git a/www.do b/www.do new file mode 100644 index 0000000000000000000000000000000000000000..781c8bbbee122b6532dff71269f220bff26d3e8c37279c909b2d2568bcfd2b30 --- /dev/null +++ b/www.do @@ -0,0 +1,12 @@ +rm -f gocheese.html/*.html +${MAKEINFO:=makeinfo} --html \ + --set-customization-variable CSS_LINES="`cat style.css`" \ + --set-customization-variable SHOW_TITLE=0 \ + --set-customization-variable USE_ACCESSKEY=0 \ + --set-customization-variable DATE_IN_HEADER=1 \ + --set-customization-variable TOP_NODE_UP_URL=index.html \ + --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \ + --set-customization-variable OPEN_QUOTE_SYMBOL=\" \ + -o gocheese.html gocheese.texi +find gocheese.html -type d -exec chmod 755 {} \; +find gocheese.html -type f -exec chmod 644 {} \; diff --git a/www.mk b/www.mk deleted file mode 100644 index 78140e87125127ecce8986afb80d43f6562831ff890f2c416f03ca089945f10a..0000000000000000000000000000000000000000 --- a/www.mk +++ /dev/null @@ -1,17 +0,0 @@ -MAKEINFO ?= makeinfo - -CSS != cat style.css - -all: gocheese.html - -gocheese.html: *.texi - rm -f gocheese.html/*.html - $(MAKEINFO) --html \ - --set-customization-variable CSS_LINES='$(CSS)' \ - --set-customization-variable SHOW_TITLE=0 \ - --set-customization-variable USE_ACCESSKEY=0 \ - --set-customization-variable DATE_IN_HEADER=1 \ - --set-customization-variable TOP_NODE_UP_URL=index.html \ - --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \ - --set-customization-variable OPEN_QUOTE_SYMBOL=\" \ - -o gocheese.html gocheese.texi