2020-02-05 22:16:58 +00:00
|
|
|
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"
|
2020-02-20 04:59:51 +00:00
|
|
|
rm -f "$dir/${package}_${version}_${arch}.deb"
|
2020-02-05 22:16:58 +00:00
|
|
|
(
|
|
|
|
cd "$dir/debtmp" &&
|
|
|
|
debian/rules build &&
|
|
|
|
fakeroot debian/rules binary
|
|
|
|
)
|
|
|
|
|
|
|
|
mv "$dir/${package}_${version}_${arch}.deb" "$3"
|