upd.sh: download missing sources

This commit is contained in:
Mikhail Novosyolov 2022-01-05 04:49:40 +03:00
parent be875ba259
commit 262a0c3b87

6
upd.sh
View file

@ -42,14 +42,16 @@ patches_ok=0
tmp="$(mktemp --tmpdir=/var/tmp -d)"
#sudo mount -t tmpfs -o size=30G tmpfs "$tmp"
trap 'if [ "$patches_ok" = 1 ]; then rm -fr "$tmp"; fi' EXIT
rpmbuild --define "_sourcedir $PWD" --define "_builddir $tmp" -bp "$spec" && patches_ok=1
sed -i'' .abf.yml -e '/^ chromium-/d' -e '/^ msspi-/d'
abf put -n
# abf put erronously uploads *.json
git checkout master_preferences.json
sed -i'' .abf.yml -e '/^ master_preferences.json/d'
# download additional sources
abf fetch
rpmbuild --define "_sourcedir $PWD" --define "_builddir $tmp" -bp "$spec" && patches_ok=1
PAGER='' git diff
# can be copypasted for a commit message
echo "upd: $old_version -> $latest_version"