mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-11 10:44:41 +00:00
12 lines
283 B
Plaintext
12 lines
283 B
Plaintext
|
redo-ifchange long.txt short.txt
|
||
|
read -r long <long.txt
|
||
|
read -r short <short.txt
|
||
|
|
||
|
# get it into "major.minor.patch" format
|
||
|
ver=$(echo "$ver" | sed -e 's/-/./')
|
||
|
|
||
|
(
|
||
|
printf '#define TAILSCALE_VERSION_LONG "%s"\n' "$long"
|
||
|
printf '#define TAILSCALE_VERSION_SHORT "%s"\n' "$short"
|
||
|
) >$3
|