Commit Graph

8 Commits

Author SHA1 Message Date
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