-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from josegonzalez/master
Release 0.0.2
- Loading branch information
Showing
1 changed file
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,14 @@ NAME = procfile-util | |
MAINTAINER = josegonzalez | ||
REPOSITORY = go-procfile-util | ||
HARDWARE = $(shell uname -m) | ||
VERSION ?= 0.0.1 | ||
VERSION ?= 0.0.2 | ||
IMAGE_NAME ?= $(MAINTAINER)/$(NAME) | ||
BUILD_TAG ?= dev | ||
define DESCRIPTION | ||
Utility that allows users to interact with Procfile files | ||
Procfiles may be specified on stdin or via a flag, but | ||
must always be valid yaml. | ||
endef | ||
|
||
build: | ||
@$(MAKE) build/darwin/$(NAME) | ||
|
@@ -35,4 +40,37 @@ release: build | |
rm -rf release && mkdir release | ||
tar -zcf release/$(NAME)_$(VERSION)_linux_$(HARDWARE).tgz -C build/linux $(NAME) | ||
tar -zcf release/$(NAME)_$(VERSION)_darwin_$(HARDWARE).tgz -C build/darwin $(NAME) | ||
@$(MAKE) release/$(NAME)_$(VERSION)_amd64.deb | ||
@$(MAKE) release/$(NAME)-$(VERSION)-1.x86_64.rpm | ||
gh-release create $(MAINTAINER)/$(REPOSITORY) $(VERSION) $(shell git rev-parse --abbrev-ref HEAD) | ||
|
||
release/$(NAME)_$(VERSION)_amd64.deb: build/linux/$(NAME) | ||
fpm \ | ||
--architecture amd64 \ | ||
--category utils \ | ||
--description "$$DESCRIPTION" \ | ||
--input-type dir \ | ||
--license 'MIT License' \ | ||
--maintainer "Jose Diaz-Gonzalez <[email protected]>" \ | ||
--name procfile-util \ | ||
--output-type deb \ | ||
--package release/$(NAME)_$(VERSION)_amd64.deb \ | ||
--url "https://github.com/$(MAINTAINER)/$(REPOSITORY)" \ | ||
--version $(VERSION) \ | ||
build/linux/$(NAME)=/usr/local/bin/$(NAME) | ||
|
||
release/$(NAME)-$(VERSION)-1.x86_64.rpm: build/linux/$(NAME) | ||
fpm \ | ||
--architecture x86_64 \ | ||
--category utils \ | ||
--description "$$DESCRIPTION" \ | ||
--input-type dir \ | ||
--license 'MIT License' \ | ||
--maintainer "Jose Diaz-Gonzalez <[email protected]>" \ | ||
--name procfile-util \ | ||
--output-type rpm \ | ||
--package release/$(NAME)-$(VERSION)-1.x86_64.rpm \ | ||
--rpm-os linux \ | ||
--url "https://github.com/$(MAINTAINER)/$(REPOSITORY)" \ | ||
--version $(VERSION) \ | ||
build/linux/$(NAME)=/usr/local/bin/$(NAME) |