1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-19 23:28:29 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
Jonas Gorski
575be9d182 scripts/getver.sh: simplify revision calculation
Use git rev-list --count to get the revision number.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-07-09 13:41:28 +02:00
John Crispin
797fb8a302 scripts: add "r" to revision
343c3be454 accidentially removed the "r"

Signed-off-by: John Crispin <john@phrozen.org>
2016-04-29 04:15:34 +02:00
John Crispin
fa69553900 branding: add LEDE branding
Signed-off-by: John Crispin <blogic@openwrt.org>
2016-03-24 22:40:13 +01:00
John Crispin
343c3be454 scripts/getver.sh: generate revision relative to the reboot tag
Signed-off-by: John Crispin <blogic@openwrt.org>
2016-03-24 22:14:12 +01:00
Vasilis Tsiligiannis
b09848cd25 scripts/getver.sh: Use 'git-rev-parse' to detect if tree lies in Git repository
Path to the Git repository directory can be overriden by using the '$GIT_DIR'
environment variable. This patch improves detection of Git repository by using
'git-rev-parse', which respects '$GIT_DIR' environment variable, instead of just
checking the existence of '.git' directory.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>

SVN-Revision: 49165
2016-04-13 20:52:26 +00:00
John Crispin
59acb0b8f4 scripts: fix getver git dir check
Git internals are referenced by .git which isn't necessarily a
directory. It may also be a file that references the actual .git
directory using the gitdir directive.

If .git is assumed to be a directory the build will not be able to get
the correct version when openwrt is included as a git submodule because
when used as a submodule .git will actually be a file referencing to a
subdirectory in the parent's git dir.

When the correct version is not detected some image generation tools
will fail because the OpenWrt string will be 'OpenWrtunknown' which is
too long for some header formats.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>

SVN-Revision: 44452
2015-02-14 20:48:37 +00:00
Jo-Philipp Wich
ad6c4198a9 getver.sh: cope with varying "git log" line formats to reliably extract the git-svn rev (#10268)
SVN-Revision: 28604
2011-10-26 14:54:57 +00:00
Nicolas Thill
0aeed7e525 getver: don't use "-r COMMITTED" arg which needs network access to the repository, use the "Last Changed Rev:" line instead
SVN-Revision: 17864
2009-10-05 09:30:53 +00:00
Nicolas Thill
6fa03d63d4 getver: get svn rev from last commit so that we have consistent revision numbers between git and svn
SVN-Revision: 17781
2009-09-28 12:26:47 +00:00
Felix Fietkau
cbb9a14d8a add hg support to getver.sh (patch from #5763)
SVN-Revision: 17432
2009-08-28 12:51:01 +00:00
Felix Fietkau
d58dd061fe some more s/git-/git /
SVN-Revision: 12380
2008-08-24 14:16:49 +00:00
Florian Fainelli
6588e58b88 Also export LC_ALL to C to work properly (#2926)
SVN-Revision: 10059
2007-12-30 17:02:00 +00:00
Felix Fietkau
51996a78f1 clean up openwrt version handling, use a separate script that is executed at the beginning of the build process, fix revision checking with git
SVN-Revision: 9723
2007-12-13 06:25:54 +00:00