You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/version/long.txt.do

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