summaryrefslogtreecommitdiffstats
path: root/sys/conf/newvers.sh
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2015-04-08 04:01:02 +0000
committereadler <eadler@FreeBSD.org>2015-04-08 04:01:02 +0000
commit83c21d548a89ed4c9034a691f9db5418bcc3bf87 (patch)
tree1fd52d5f76db1abe223c432b9279bde7bde2363f /sys/conf/newvers.sh
parentee504eba70df48b00316e0d98715bb8a36e1755f (diff)
downloadFreeBSD-src-83c21d548a89ed4c9034a691f9db5418bcc3bf87.zip
FreeBSD-src-83c21d548a89ed4c9034a691f9db5418bcc3bf87.tar.gz
newvers.sh: remove 'X' hack from shell script
Reviewed by: allanjude, Daniel O'Connor
Diffstat (limited to 'sys/conf/newvers.sh')
-rw-r--r--sys/conf/newvers.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index c06eeaf..3ca5bcd 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -33,17 +33,17 @@
TYPE="FreeBSD"
REVISION="11.0"
BRANCH="CURRENT"
-if [ "X${BRANCH_OVERRIDE}" != "X" ]; then
+if [ -n "${BRANCH_OVERRIDE}" ]; then
BRANCH=${BRANCH_OVERRIDE}
fi
RELEASE="${REVISION}-${BRANCH}"
VERSION="${TYPE} ${RELEASE}"
-if [ "X${SYSDIR}" = "X" ]; then
+if [ -z "${SYSDIR}" ]; then
SYSDIR=$(dirname $0)/..
fi
-if [ "X${PARAMFILE}" != "X" ]; then
+if [ -n "${PARAMFILE}" ]; then
RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
${PARAMFILE})
else
@@ -72,7 +72,7 @@ do
done
# no copyright found, use a dummy
-if [ X"$COPYRIGHT" = X ]; then
+if [ -z "$COPYRIGHT" ]; then
COPYRIGHT="/*-
* Copyright (c) 1992-$year The FreeBSD Project.
* All rights reserved.
OpenPOWER on IntegriCloud