-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublp
executable file
·40 lines (37 loc) · 910 Bytes
/
publp
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
35
36
37
38
39
40
#optional 1 ppa
name=`cat debian/changelog | head -1 | grep -o ^[^\ ]*`
version=`cat debian/changelog | head -1 | grep -Poe "[^\(]*(?=\))"`
if [ -z "${1}" ]; then
ppa=ppa
else
ppa=${1}
fi
echo ${ppa} ${name} ${version}
i=1 #at the moment it is an overall build, first in control takes make install files, second takes from .install file and makes the deb in dh_install with cp commands
source ~/test/publparh
for var in "${arh[@]}"
do
echo ${var}
slp=60
while true
do
OUTPUT=`python3 ~/test/lp2.py ${ppa} ${name} ${version} ${var} x | head -1`
echo =${OUTPUT} ${slp}
if [ "${OUTPUT}" = 'Successfully built' ]; then
if [ -e ~/stopwaitingflag ]; then
rm ~/stopwaitingflag
fi
break
fi
if [ -e ~/stopwaitingflag ]; then
rm ~/stopwaitingflag
echo stopped
notify-send "stopped"
exit 1
fi
sleep ${slp}
if [ $slp -lt 300 ]; then
slp=$((slp+15))
fi
done
done