mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-23 07:03:44 +00:00
parent
ce5869bd9b
commit
cbb9a14d8a
@ -23,5 +23,12 @@ try_git() {
|
||||
[ -n "$REV" ]
|
||||
}
|
||||
|
||||
try_version || try_svn || try_git || REV="unknown"
|
||||
try_hg() {
|
||||
[ -d .hg ] || return 1
|
||||
REV="$(hg log -r-1 --template '{desc}' | awk '{print $2}' | sed 's/\].*//')"
|
||||
REV="${REV:+$REV}"
|
||||
[ -n "$REV" ]
|
||||
}
|
||||
|
||||
try_version || try_svn || try_git || try_hg || REV="unknown"
|
||||
echo "$REV"
|
||||
|
Loading…
Reference in New Issue
Block a user