-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package building is managed by deb-builder
* We don't have anymore need about deployment action
- Loading branch information
Showing
2 changed files
with
1 addition
and
58 deletions.
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
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 |
---|---|---|
@@ -1,32 +1,5 @@ | ||
#!/usr/bin/make -f | ||
# Sample debian/rules that uses debhelper. | ||
# This file is public domain software, originally written by Joey Hess. | ||
# | ||
# This version is for a multibinary package. It also allows you to build any | ||
# of the binary packages independantly, via binary-<package> targets. | ||
#export DH_VERBOSE = 1 | ||
|
||
# Uncomment this to turn on verbose mode. | ||
export DH_VERBOSE=1 | ||
|
||
#Define version packaging | ||
#Exclude nighly version | ||
VERSION=$(shell git tag -l --points-at HEAD |grep -v 'nightly') | ||
ifeq ($(strip $(VERSION)),) | ||
VERSION=$(shell git tag | sort -V |grep -v nightly|tail -1) | ||
ifeq ($(strip $(VERSION)),) | ||
export VERSION="0.0.0" | ||
endif | ||
VERSION:=$(VERSION)+$(shell date +'%y%m%d%H%M%S') | ||
IS_NIGHTLY=1 | ||
endif | ||
|
||
clean: | ||
dh clean | ||
rm -f debian/files | ||
(git rev-parse --git-dir > /dev/null 2>&1 && git checkout debian/changelog) || true | ||
ifeq ($(strip $(IS_NIGHTLY)),1) | ||
(git rev-parse --git-dir > /dev/null 2>&1 && dch -m -b -v $(VERSION) autobuild) || true | ||
endif | ||
%: | ||
dh $@ | ||
|