Commit graph

10 commits

Author SHA1 Message Date
Solomon Peachy
c914b148e5 build: Get rid of svn vestiges from version script
Set 10-character git shortrevs for consistency with modern git
defaults

Change-Id: I694f09acd5da1c9b837c9a71a82bd7b72578efd7
2020-07-09 20:29:33 -04:00
Torne Wuff
3a9aa8e51b Fix up tools/version.sh for git transition.
Since we will be transitioning to git, stop considering svn the primary source.
If HEAD is a git-svn revision, return the svn revision number as before
(this means that if you check out old versions they keep their previously
canonical version numbers) but if it's not, then just print the short SHA1.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31480 a1c6a512-1295-4272-9138-f99709370657
2011-12-31 16:32:21 +00:00
Torne Wuff
79f88e7f39 Remove bzr support from tools/version.sh.
Only I ever used this that I know of, and now we are migrating to git it's
not needed (and won't work correctly, since we won't be svn-derived).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31479 a1c6a512-1295-4272-9138-f99709370657
2011-12-31 16:30:14 +00:00
Michael Hohmuth
7bac05c749 Better version reporting for git-tracked repositories: Include the git
commit ID in the version string, much like is done for repos tracked
with bzr.  FS#11297

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29827 a1c6a512-1295-4272-9138-f99709370657
2011-05-06 08:36:10 +00:00
Marcin Bukat
308936cd35 fix make VERSION=x.y to work again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28427 a1c6a512-1295-4272-9138-f99709370657
2010-10-31 21:52:48 +00:00
Torne Wuff
91933a3fef Add support for detecting build version in a bzr checkout (for bzr-svn users).
From FS#10414 (by me)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23187 a1c6a512-1295-4272-9138-f99709370657
2009-10-15 12:38:24 +00:00
Rafaël Carré
7d1528e601 version.sh : fix revision in git-svn trees
"git log .. -1" only shows one commit (the last one), so extract the last line (git-svn-id:..) with tail -n 1, instead of the first line (which is the committer's message in case of multi lines body)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21188 a1c6a512-1295-4272-9138-f99709370657
2009-06-04 15:05:00 +00:00
Andrew Mahone
6df03c6d53 Fix version.sh when it's run outside of the git working directory.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20934 a1c6a512-1295-4272-9138-f99709370657
2009-05-15 01:14:48 +00:00
Andrew Mahone
1de930227b Attempt to make version.sh a little more resistant to producing spurious "modified" status on git repositories.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20933 a1c6a512-1295-4272-9138-f99709370657
2009-05-15 00:57:35 +00:00
Andrew Mahone
76042cb389 new version.sh that works exactly like svnversion.sh, but functions correctly with pure git repositories
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19799 a1c6a512-1295-4272-9138-f99709370657
2009-01-19 16:18:30 +00:00