blob: ff24fd1c141160c645c3744d97e5bb91aa5edcce (
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
27
28
29
30
31
32
33
34
|
#!/bin/bash
set -e
set -o pipefail
if ls *.changes > /dev/null 2> /dev/null; then
echo ".changes files already exist!"
echo "Clean repo before building? (y/N) "
read -n 1 PRECLEAN
echo
if [ "$PRECLEAN" == "y" ]; then git clean; else exit 1; fi
fi
for SOURCE in libpiny pinyadmin; do (cd "$SOURCE"; debuild -tc "$@"); done
equivs-build -f piny.equiv
echo
echo -n "Install packages on this machine? (y/N) "
read -n 1 INSTALL
echo
if [ "$INSTALL" == "y" ]; then sudo debi *.changes; fi
echo
echo -n "Upload packages to debian? (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
|