summaryrefslogtreecommitdiff
path: root/builddebs
blob: cb6f597c631a9f23bb3431aec73de7504abb3f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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 sudo 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