#!/bin/bash set -e set -o pipefail for SOURCE in libpiny pinyadmin; do (cd "$SOURCE"; debuild -tc); done equivs-build -f piny.equiv echo echo -n "Install packages? (y/N) " read -n 1 INSTALL echo if [ "$INSTALL" == "y" ]; then debi *.changes; fi echo echo -n "Push packages? (y/N) " read -n 1 PUSH echo if [ "$PUSH" == "y" ]; then dput *.changes; fi echo echo -n "Clean repo? (y/N) " read -n 1 CLEAN echo if [ "$CLEAN" == "y" ]; then git clean; fi