mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 21:15:39 +00:00
57bbafde84
relaynode itself is not long for this world, deprecated in favour of tailscale/tailscaled. But now that the control server supports central distribution of packet filters, let's actually take advantage of it in a final, backward compatible release of relaynode.
22 lines
553 B
Plaintext
22 lines
553 B
Plaintext
exec >&2
|
|
dir=${1%/*}
|
|
redo-ifchange "$S/oss/version/short.txt" "$S/$dir/package" "$dir/debtmp.dir"
|
|
read -r package <"$S/$dir/package"
|
|
read -r version <"$S/oss/version/short.txt"
|
|
arch=$(dpkg --print-architecture)
|
|
|
|
(
|
|
cd "$S/$dir"
|
|
git ls-files debian | xargs redo-ifchange debian/changelog
|
|
)
|
|
cp -a "$S/$dir/debian" "$dir/debtmp/"
|
|
rm -f "$dir/debtmp/debian/$package.debhelper.log"
|
|
rm -f "$dir/${package}_${version}_${arch}.deb"
|
|
(
|
|
cd "$dir/debtmp" &&
|
|
debian/rules build &&
|
|
fakeroot debian/rules binary
|
|
)
|
|
|
|
mv "$dir/${package}_${version}_${arch}.deb" "$3"
|