File: bisect.sh

package info (click to toggle)
caveexpress 2.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,288 kB
  • sloc: cpp: 63,815; ansic: 1,135; sh: 501; xml: 186; python: 74; makefile: 60; javascript: 22
file content (29 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download | duplicates (5)
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
#!/bin/bash

./configure --enable-ccache
make clean
make -j 4
if [ ! -f ./caveexpress ]; then
	exit 125
fi

./caveexpress

ANSWER=""

echo "-----------------------------------"
while [ "$ANSWER" != "yes" -a "$ANSWER" != "no" -a "$ANSWER" != "idk" -a "$ANSWER" != "exit" ]; do
	echo "Do you have the problem? Answer with [yes|no|idk|exit]"
	read ANSWER
done

case "$ANSWER" in
	yes) exit 1
	;;
	no) exit 0
	;;
	idk) exit 125
	;;
	*) exit 255
	;;
esac