mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 09:04:52 +01:00
Make version tag include branch if not master
This commit is contained in:
parent
2eaac80c86
commit
54fdc6866e
8
Makefile
8
Makefile
@ -1,5 +1,5 @@
|
|||||||
SHELL = /bin/bash
|
SHELL = /bin/bash
|
||||||
TAG := $(shell git describe --tags)
|
TAG := $(shell echo `git describe --tags`-`git rev-parse --abbrev-ref HEAD` | sed 's/-master$$//')
|
||||||
LAST_TAG := $(shell git describe --tags --abbrev=0)
|
LAST_TAG := $(shell git describe --tags --abbrev=0)
|
||||||
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)')
|
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)')
|
||||||
|
|
||||||
@ -7,6 +7,12 @@ rclone:
|
|||||||
@go version
|
@go version
|
||||||
go install -v ./...
|
go install -v ./...
|
||||||
|
|
||||||
|
vars:
|
||||||
|
@echo SHELL="'$(SHELL)'"
|
||||||
|
@echo TAG="'$(TAG)'"
|
||||||
|
@echo LAST_TAG="'$(LAST_TAG)'"
|
||||||
|
@echo NEW_TAG="'$(NEW_TAG)'"
|
||||||
|
|
||||||
# Full suite of integration tests
|
# Full suite of integration tests
|
||||||
test: rclone
|
test: rclone
|
||||||
go test ./...
|
go test ./...
|
||||||
|
Loading…
Reference in New Issue
Block a user