Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148539079
D19797.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19797.id.diff
View Options
Index: head/sys/conf/newvers.sh
===================================================================
--- head/sys/conf/newvers.sh
+++ head/sys/conf/newvers.sh
@@ -46,10 +46,7 @@
TYPE="FreeBSD"
REVISION="13.0"
-BRANCH="CURRENT"
-if [ -n "${BRANCH_OVERRIDE}" ]; then
- BRANCH=${BRANCH_OVERRIDE}
-fi
+BRANCH=${BRANCH_OVERRIDE:-CURRENT}
RELEASE="${REVISION}-${BRANCH}"
VERSION="${TYPE} ${RELEASE}"
@@ -108,21 +105,16 @@
SYSDIR=$(dirname $0)/..
fi
-if [ -n "${PARAMFILE}" ]; then
- RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
- ${PARAMFILE})
-else
- RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
- ${SYSDIR}/sys/param.h)
-fi
+RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
+ ${PARAMFILE:-${SYSDIR}/sys/param.h})
-b=share/examples/etc/bsd-style-copyright
if [ -r "${SYSDIR}/../COPYRIGHT" ]; then
year=$(sed -Ee '/^Copyright .* The FreeBSD Project/!d;s/^.*1992-([0-9]*) .*$/\1/g' ${SYSDIR}/../COPYRIGHT)
else
year=$(date +%Y)
fi
# look for copyright template
+b=share/examples/etc/bsd-style-copyright
for bsd_copyright in ../$b ../../$b ../../../$b /usr/src/$b /usr/$b
do
if [ -r "$bsd_copyright" ]; then
@@ -150,9 +142,7 @@
# VARS_ONLY means no files should be generated, this is just being
# included.
-if [ -n "$VARS_ONLY" ]; then
- return 0
-fi
+[ -n "$VARS_ONLY" ] && return 0
LC_ALL=C; export LC_ALL
if [ ! -r version ]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 2:11 PM (9 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29885299
Default Alt Text
D19797.id.diff (1 KB)
Attached To
Mode
D19797: Use default shell assignment rather more complicated if then construct.
Attached
Detach File
Event Timeline
Log In to Comment