mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 19:45:35 +00:00
21 lines
506 B
Plaintext
21 lines
506 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"
|
|
(
|
|
cd "$dir/debtmp" &&
|
|
debian/rules build &&
|
|
fakeroot debian/rules binary
|
|
)
|
|
|
|
mv "$dir/${package}_${version}_${arch}.deb" "$3"
|