~cypheon/pkgsrc-wip

pkgsrc-wip/apstget/files/apstget-wrapper -rw-r--r-- 553 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 7 months ago
                                                                                
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
#!/bin/sh

CONFIGFILE=_etc_/apstget.conf

if [ -e "${CONFIGFILE}" ]; then
. ${CONFIGFILE}
fi

if [ "${QUITE}" = "" ]; then
	QUITE="0"
fi

env QUITE=${QUITE} \
awk -W interactive '
{
	if ( /MAKESUM/ ) {
		print "INVALID SUM";
		exit
	} else
	if ( ENVIRON["QUITE"] < "1" ) {
		print $0;
	} else 
	if ( ENVIRON["QUITE"] == "1" ) {
		if (/==>/ || /=> Attempting/ || /ETA/) print $0;
	} else
	if ( ENVIRON["QUITE"] == "2" ) {
		if ( /=> Attempting/   ||
			/==> Configuring/   ||
			/==> Building/      ||
			/==> Installing/    ||
			/ETA/) print $0;
	}
}'