Codebase list rust-libslirp / 90f3bab
More script tweaks regarding syncing with master Ximin Luo 4 years ago
2 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11 set -e
22
33 packages=( $(dev/list-pending-not-NEW.sh | dev/filter-package-in-debian.sh | grep -v ' 0$' | cut '-d ' -f1) )
4
5 if [ -z "$packages" ]; then exit 0; fi
46 set -x
7
8 git fetch origin --prune
9 git diff --quiet origin/master || \
10 { echo >&2 "Please sync with origin/master before running this."; exit 1; }
511
612 git merge "${packages[@]/#/pending-}"
713 git push origin master "${packages[@]/#/:pending-}"
2626 git fetch origin --prune
2727
2828 git diff --quiet origin/master || \
29 abort 1 "You have unpushed changes on the master branch, please push or unwind them before running this script."
29 abort 1 "You are not synced with origin/master, please do so before running this script."
3030
3131 if head -n1 "$PKGDIR/debian/changelog" | grep -qv UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; then
3232 abort 0 "Package already released."