mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 18:59:44 +02:00
[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
This commit is contained in:
parent
9f19c5e029
commit
21e17d6ad4
@ -11,7 +11,7 @@ try_version() {
|
|||||||
|
|
||||||
try_svn() {
|
try_svn() {
|
||||||
[ -d .svn ] || return 1
|
[ -d .svn ] || return 1
|
||||||
REV="$(svn info | awk '/^Revision:/ { print $2 }')"
|
REV="$(svn info -r COMMITTED | awk '/^Revision:/ { print $2 }')"
|
||||||
REV="${REV:+r$REV}"
|
REV="${REV:+r$REV}"
|
||||||
[ -n "$REV" ]
|
[ -n "$REV" ]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user