Updating a batch of packages
Rouch outline for updating a batch of packages
# For released bits
for thing in $packages; do upstream-release $thing xena; done
# For snapshots
for thing in $packages; do ~/pkg-scripts/pkg-snapshot-version-git $thing master; done
cd pkg
# Check if packages match what's uploaded
for thing in $packages; do cat $thing/debian/changelog | grep -q $(rmadison $thing | grep impish | awk -F '|' '{print $2}' | tail -n 1) || echo "$thing has differences"; done
for thing in $packages; do echo $thing; (cd $thing; ~/pkg-scripts/pkg-update-deps impish); done
# Diff all of the $packages to see if updates are needed
# can skip releaseing if desired, but will need to re-do the builds after
for thing in $packages; do (cd $thing; dch -r; debcommit -ar); done
for thing in $packages; do echo $thing; (cd $thing; (gbp buildpackage -S -sa || touch ../$thing.gbp.fail) | tee ../$thing.gbp.log); done
# Check for *.fail
for thing in $packages; do echo $thing; (cd $thing; (pbuilder-dist impish build ../build-area/${PWD##*/}_*dsc || touch ../$thing.pbuilder.fail) | tee ~/packaging/xena/batch/$thing.build.log); done
# Check for *.fail
dput build-area/*.changes
for thing in $packages; do git -C $thing push --all; git -C $thing push ---tags; done