Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/etcupdate etcupdate: style change: function { on ne...



details:   https://anonhg.NetBSD.org/src/rev/57537db2f1b4
branches:  trunk
changeset: 359540:57537db2f1b4
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Jan 09 03:25:38 2022 +0000

description:
etcupdate: style change: function { on new line

diffstat:

 usr.sbin/etcupdate/etcupdate |  31 ++++++++++++++++++++-----------
 1 files changed, 20 insertions(+), 11 deletions(-)

diffs (102 lines):

diff -r 6421a71bfd17 -r 57537db2f1b4 usr.sbin/etcupdate/etcupdate
--- a/usr.sbin/etcupdate/etcupdate      Sun Jan 09 00:36:28 2022 +0000
+++ b/usr.sbin/etcupdate/etcupdate      Sun Jan 09 03:25:38 2022 +0000
@@ -1,8 +1,8 @@
 #!/bin/sh
 #
-# $NetBSD: etcupdate,v 1.61 2020/12/02 14:20:20 wiz Exp $
+# $NetBSD: etcupdate,v 1.62 2022/01/09 03:25:38 lukem Exp $
 #
-# Copyright (c) 2001-2008 The NetBSD Foundation, Inc.
+# Copyright (c) 2001-2022 The NetBSD Foundation, Inc.
 # All rights reserved.
 #
 # This code is derived from software contributed to The NetBSD Foundation
@@ -80,7 +80,8 @@
 NEED_SERVICES_MKDB=false
 
 
-usage() {
+usage()
+{
        cat << EOF >&2
 
 Usage: ${PROG} [options]
@@ -110,13 +111,15 @@
        exit 1
 }
 
-verbose() {
+verbose()
+{
        # $* = message to display if in verbose mode
 
        ${VERBOSE} && echo "${@}"
 }
 
-yesno() {
+yesno()
+{
        # $* = message to display
 
        echo -n "${@}? (y/[n]) "
@@ -191,7 +194,8 @@
        printf "%s\n" "${arg}" | sed -e 's/[][^$.*\\'"${extra}"']/\\&/g'
 }
 
-install_dir() {
+install_dir()
+{
        # $1 = target directory (relative to ${DESTDIR})
 
        NEED_ANYTHING=true
@@ -202,7 +206,8 @@
        fi
 }
 
-install_file() {
+install_file()
+{
        # $1 = target file (relative to ${DESTDIR})
 
        NEED_ANYTHING=true
@@ -230,7 +235,8 @@
        esac
 }
 
-install_checksum() {
+install_checksum()
+{
        # $1 = target file (relative to ${DESTDIR})
 
        ${AUTOMATIC} || return
@@ -248,7 +254,8 @@
 }
 
 # Initialise the DIFF_EXTRA_OPTIONS variable.
-init_diff_extra_options() {
+init_diff_extra_options()
+{
        #
        # Start with a few options that are always available.
        #
@@ -274,7 +281,8 @@
   scommand Show differences using the specified diff-like command"
 }
 
-diff_and_merge_file() {
+diff_and_merge_file()
+{
        # $1 = target file (relative to ${DESTDIR})
 
        if cmp -s "${TEMPROOT}${1}" "${DESTDIR}${1}"; then
@@ -432,7 +440,8 @@
 }
 
 # Set the environment for make.
-set_makeenv() {
+set_makeenv()
+{
        #
        # INSTALL_DONE=1 prevents installation of unwanted
        # files (things that are not part of the etc set).



Home | Main Index | Thread Index | Old Index