Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Commit

Permalink
Try to read BRANCH, VERSION and REVISION
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Dec 1, 2014
1 parent 1db25ba commit d0b4a14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DOKKU_ROOT ?= /home/dokku
SIGN_KEY ?= EAD883AF

DEB_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
DEB_VERSION := $(shell git describe --tags)
DEB_REVISION := $(shell git rev-parse HEAD)
DEB_BRANCH := $(shell git rev-parse --abbrev-ref HEAD || cat BRANCH || echo master)
DEB_VERSION := $(shell git describe --tags || cat VERSION || echo 0.0)
DEB_REVISION := $(shell git rev-parse HEAD || cat REVISION || echo unknown)
DEB_ARCH := amd64
DEB_NAME ?= dokku-alt
DEB_PKG := $(DEB_NAME)-$(DEB_VERSION)-$(DEB_ARCH).deb
Expand Down

0 comments on commit d0b4a14

Please sign in to comment.