Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
df8dfdce
Commit
df8dfdce
authored
Aug 06, 2014
by
Serge van Ginderachter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packaging: add short has and branch name in package version for unofficial builds
parent
e90d2573
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Makefile
+7
-2
No files found.
Makefile
View file @
df8dfdce
...
@@ -39,6 +39,11 @@ VERSION := $(shell cat VERSION)
...
@@ -39,6 +39,11 @@ VERSION := $(shell cat VERSION)
# Get the branch information from git
# Get the branch information from git
ifneq
($(shell
which
git),)
ifneq
($(shell
which
git),)
GIT_DATE
:=
$(
shell
git log
-n
1
--format
=
"%ai"
)
GIT_DATE
:=
$(
shell
git log
-n
1
--format
=
"%ai"
)
GIT_HASH
:=
$(
shell
git log
-n
1
--format
=
"%h"
)
GIT_BRANCH
:=
$(
shell
git rev-parse
--abbrev-ref
HEAD | sed
's/[-_.]//g'
)
GITINFO
=
.
$(GIT_HASH)
.
$(GIT_BRANCH)
else
GITINFO
=
''
endif
endif
ifeq
($(shell
echo
$(OS)
|
egrep
-c
'Darwin|FreeBSD|OpenBSD'
),1)
ifeq
($(shell
echo
$(OS)
|
egrep
-c
'Darwin|FreeBSD|OpenBSD'
),1)
...
@@ -60,7 +65,7 @@ ifeq ($(OFFICIAL),yes)
...
@@ -60,7 +65,7 @@ ifeq ($(OFFICIAL),yes)
DEBUILD_OPTS
+=
-k
$(DEBSIGN_KEYID)
DEBUILD_OPTS
+=
-k
$(DEBSIGN_KEYID)
endif
endif
else
else
DEB_RELEASE
=
0.git
$(DATE)
DEB_RELEASE
=
0.git
$(DATE)
$(GITINFO)
# Do not sign unofficial builds
# Do not sign unofficial builds
DEBUILD_OPTS
+=
-uc
-us
DEBUILD_OPTS
+=
-uc
-us
DPUT_OPTS
+=
-u
DPUT_OPTS
+=
-u
...
@@ -76,7 +81,7 @@ RPMSPEC = $(RPMSPECDIR)/ansible.spec
...
@@ -76,7 +81,7 @@ RPMSPEC = $(RPMSPECDIR)/ansible.spec
RPMDIST
=
$(
shell
rpm
--eval
'%{?dist}'
)
RPMDIST
=
$(
shell
rpm
--eval
'%{?dist}'
)
RPMRELEASE
=
1
RPMRELEASE
=
1
ifneq
($(OFFICIAL),yes)
ifneq
($(OFFICIAL),yes)
RPMRELEASE
=
0.git
$(DATE)
RPMRELEASE
=
0.git
$(DATE)
$(GITINFO)
endif
endif
RPMNVR
=
"
$(NAME)
-
$(VERSION)
-
$(RPMRELEASE)$(RPMDIST)
"
RPMNVR
=
"
$(NAME)
-
$(VERSION)
-
$(RPMRELEASE)$(RPMDIST)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment