pkgsrc-wip/apstget/files/apstget-wrapper
pancake ;) 8977c24dd8 add initial testing features:
- SKIP_LICENSES
- use PKG_RESUME_TRANSFERS by default
2004-11-25 12:48:11 +00:00

33 lines
553 B
Bash

#!/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;
}
}'