Commit Graph

8 Commits (8cb4c59a16a8f002ee513444ee96be144d17163e)

Author SHA1 Message Date
John Crispin 0709b59745 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44452 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-14 20:48:37 +00:00
Jo-Philipp Wich 80c2325031 [scripts] getver.sh: cope with varying "git log" line formats to reliably extract the git-svn rev (#10268)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28604 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-26 14:54:57 +00:00
Nicolas Thill 3b3361a35d [scripts] getver: don't use "-r COMMITTED" arg which needs network access to the repository, use the "Last Changed Rev:" line instead
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17864 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-05 09:30:53 +00:00
Nicolas Thill b36c9d3cec [scripts] getver: get svn rev from last commit so that we have consistent revision numbers between git and svn
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17781 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-28 12:26:47 +00:00
Felix Fietkau 6852fee1ce add hg support to getver.sh (patch from #5763)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17432 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-28 12:51:01 +00:00
Felix Fietkau f58e3fe78b some more s/git-/git /
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-24 14:16:49 +00:00
Florian Fainelli a57f453609 Also export LC_ALL to C to work properly (#2926)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10059 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-30 17:02:00 +00:00
Felix Fietkau d42667f87b clean up openwrt version handling, use a separate script that is executed at the beginning of the build process, fix revision checking with git
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9723 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-13 06:25:54 +00:00