Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
65d44cfb
Commit
65d44cfb
authored
Mar 27, 2013
by
Benoit Rat
Committed by
Alessandro Rubini
Apr 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc: parse git tag version in Makefile to display them in the output
parent
6772f13b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Makefile
doc/user_guide/Makefile
+2
-2
Makefile
userspace/tools/Makefile
+2
-2
No files found.
doc/user_guide/Makefile
View file @
65d44cfb
...
...
@@ -32,8 +32,8 @@ ifneq "$(TEMPLATE)" ""
TEMPLATEARG
=
--template
=
$(TEMPLATE)
endif
## Obtain the version
($ is replaced by $$)
VERSION
=
$(
shell
git describe
--always
--dirty
=
+ |
sed
's;^
.*-\([v0-9\.]*\)\([a-z0-9\-+]*\)$$;\1\2;'
)
## Obtain the version
VERSION
=
$(
shell
git describe
--always
--dirty
=
+ |
sed
's;^
wr-switch-sw-;;'
)
DATE
=
$(
shell
date
+
"%d %b. %Y"
)
#--highlight-style=pygments (the default), kate, monochrome, espresso, haddock, and tango
...
...
userspace/tools/Makefile
View file @
65d44cfb
...
...
@@ -13,8 +13,8 @@ STRIP = $(CROSS_COMPILE)strip
OBJCOPY
=
$(CROSS_COMPILE)
objcopy
OBJDUMP
=
$(CROSS_COMPILE)
objdump
#
GIT_VER
=
$(
shell
git describe
--always
--dirty
=
+ |
sed
's;^
[a-zA-Z\-]*-\(.*\)$$;\1;'
)
#
GIT_VER
=
$(
shell
git describe
--always
--dirty
=
+ |
sed
's;^
wr-switch-sw-;;'
)
GIT_USR
=
$(
shell
git config
--get-all
user.name
)
# LOTs of includes
...
...
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