archives/gitlab-pages: new aport
This commit is contained in:
parent
8403bcb534
commit
9f600f271f
3 changed files with 108 additions and 0 deletions
18
archives/gitlab-pages/ungit-makefile.patch
Normal file
18
archives/gitlab-pages/ungit-makefile.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
diff --git a/Makefile.internal.mk.orig b/Makefile.internal.mk
|
||||
index 6dfaa1b..207bdaf 100644
|
||||
--- a/Makefile.internal.mk.orig
|
||||
+++ b/Makefile.internal.mk
|
||||
@@ -1,13 +1,3 @@
|
||||
-REVISION := $(shell git rev-parse --short HEAD || echo unknown)
|
||||
-LAST_TAG := $(shell git describe --tags --abbrev=0)
|
||||
-COMMITS := $(shell echo `git log --oneline $(LAST_TAG)..HEAD | wc -l`)
|
||||
-VERSION := $(shell cat VERSION)
|
||||
-BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
-
|
||||
-ifneq (v$(VERSION),$(LAST_TAG))
|
||||
- VERSION := $(shell echo $(VERSION)~beta.$(COMMITS).g$(REVISION))
|
||||
-endif
|
||||
-
|
||||
VERSION_FLAGS :=-X "main.VERSION=$(VERSION)" -X "main.REVISION=$(REVISION)"
|
||||
|
||||
export GOBIN := $(CURDIR)/bin
|
Loading…
Add table
Add a link
Reference in a new issue