From b0107f53ac33129bf3f75d75f0549f4a1ebc2673 Mon Sep 17 00:00:00 2001 From: Bjoern Rabenstein Date: Mon, 2 Feb 2015 15:25:06 +0100 Subject: [PATCH] Added CHANGELOG.md and VERSION. --- CHANGELOG.md | 4 ++++ Makefile | 8 +++++++- VERSION | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md create mode 100644 VERSION diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..77c392c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +## 0.1.0 / 2015-02-02 +* [CLEANUP] Introduced semantic versioning and changelog. From now on, + changes will be reported in this file. + \ No newline at end of file diff --git a/Makefile b/Makefile index aeb9fc4..562e6e3 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +VERSION=$(shell cat `git rev-parse --show-toplevel`/VERSION) + OS = $(shell uname) ARCH = $(shell uname -m) @@ -89,7 +91,11 @@ advice: test $(GO) vet ./... format: - find . -iname '*.go' | grep -v './.build/' | xargs -n1 -P1 $(GOFMT) -w -s=true + find . -iname '*.go' | grep -vE '^./(.build|_vendor)/' | xargs -n1 -P1 $(GOFMT) -w -s=true + +tag: + git tag $(VERSION) + git push --tags search_index: $(GODOC) -index -write_index -index_files='search_index' diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0