aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/getver.sh
Commit message (Collapse)AuthorAgeFilesLines
* scripts: add dirtyhack to getver.shZoltan HERPAI2016-06-241-1/+2
| | | | | | | | Add hack to account for the missing commits in the git tree, and try to roughly match the revision numbers continued from the SVN tree. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* scripts/getver.sh: generate revision relative to the trunk tag.Zoltan HERPAI2016-06-231-3/+2
| | | | | | | | | | | | The first commit was tagged as "trunk". As there are missing commits for some reason in the tree, the relative number of commits to the tag is now 37507. This will mean some confusion to the users when reflecting to the revision numbers, so the git commit ID is added to the revision to clearly indicate it's from the nrew github tree. Example is r37487-g441a9c8. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* scripts/getver.sh: Use 'git-rev-parse' to detect if tree lies in Git repositoryVasilis Tsiligiannis2016-04-131-1/+1
| | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49165 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts: fix getver git dir checkJohn Crispin2015-02-141-1/+1
| | | | | | | | | | | | | | | | | | | 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
* [scripts] getver.sh: cope with varying "git log" line formats to reliably ↵Jo-Philipp Wich2011-10-261-1/+1
| | | | | | extract the git-svn rev (#10268) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28604 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [scripts] getver: don't use "-r COMMITTED" arg which needs network access to ↵Nicolas Thill2009-10-051-1/+1
| | | | | | the repository, use the "Last Changed Rev:" line instead git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17864 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [scripts] getver: get svn rev from last commit so that we have consistent ↵Nicolas Thill2009-09-281-1/+1
| | | | | | revision numbers between git and svn git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17781 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add hg support to getver.sh (patch from #5763)Felix Fietkau2009-08-281-1/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17432 3c298f89-4303-0410-b956-a3cf2f4a3e73
* some more s/git-/git /Felix Fietkau2008-08-241-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12380 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Also export LC_ALL to C to work properly (#2926)Florian Fainelli2007-12-301-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10059 3c298f89-4303-0410-b956-a3cf2f4a3e73
* clean up openwrt version handling, use a separate script that is executed at ↵Felix Fietkau2007-12-131-0/+26
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