mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 11:35:35 +00:00
11 lines
215 B
Plaintext
11 lines
215 B
Plaintext
ver=$(cd ../.. && git describe | sed 's/^v//')
|
|
if [ "$ver" = "${ver%-*}" ]; then
|
|
# no sub-version. ie. it's 0.05 and not 0.05-341
|
|
# so add a sub-version.
|
|
ver=$ver-0
|
|
fi
|
|
echo "$ver" >$3
|
|
|
|
redo-always
|
|
redo-stamp <$3
|