mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-24 12:04:38 +00:00
OpenBSD-friendly bld/get-version script
This commit is contained in:
1 parent
c5379c1ab6
commit
96f6979c4f
1 file changed
+2
-2
+2
-2
@@ -18,10 +18,10 @@ elif grep '\$Format:%d\$' VERSION >/dev/null 2>&1; then
|
||||
# unsubstituted VERSION, but no git available.
|
||||
echo UNKNOWN
|
||||
else
|
||||
vers=`cat VERSION | sed 's/[(), ]/\n/ g' | grep $v[0-9] | head -n 1`
|
||||
vers=`cat VERSION | sed 's/[(), ]/,/ g' | tr ',' '\n' | grep $v[0-9]`
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo ${vers#v}
|
||||
echo "${vers}" | head -n 1 | tail -c +2
|
||||
else
|
||||
cat VERSION
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user