Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/freebsd-update/freebsd-update.sh
Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
# Pretend current release is FreeBSD $1 | # Pretend current release is FreeBSD $1 | ||||
config_SourceRelease () { | config_SourceRelease () { | ||||
UNAME_r=$1 | UNAME_r=$1 | ||||
if echo ${UNAME_r} | grep -qE '^[0-9.]+$'; then | if echo ${UNAME_r} | grep -qE '^[0-9.]+$'; then | ||||
UNAME_r="${UNAME_r}-RELEASE" | UNAME_r="${UNAME_r}-RELEASE" | ||||
fi | fi | ||||
export UNAME_r | |||||
} | } | ||||
# Define what happens to output of utilities | # Define what happens to output of utilities | ||||
config_VerboseLevel () { | config_VerboseLevel () { | ||||
if [ -z ${VERBOSELEVEL} ]; then | if [ -z ${VERBOSELEVEL} ]; then | ||||
case $1 in | case $1 in | ||||
[Dd][Ee][Bb][Uu][Gg]) | [Dd][Ee][Bb][Uu][Gg]) | ||||
VERBOSELEVEL=debug | VERBOSELEVEL=debug | ||||
▲ Show 20 Lines • Show All 3,013 Lines • Show Last 20 Lines |