Deleted Added
full compact
bsdconfig (251265) bsdconfig (251266)
1#!/bin/sh
2#-
3# Copyright (c) 2012 Ron McDowell
4# Copyright (c) 2012-2013 Devin Teske
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26# SUCH DAMAGE.
27#
1#!/bin/sh
2#-
3# Copyright (c) 2012 Ron McDowell
4# Copyright (c) 2012-2013 Devin Teske
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26# SUCH DAMAGE.
27#
28# $FreeBSD: head/usr.sbin/bsdconfig/bsdconfig 251265 2013-06-02 22:04:39Z dteske $
28# $FreeBSD: head/usr.sbin/bsdconfig/bsdconfig 251266 2013-06-02 22:34:40Z dteske $
29#
30############################################################ INCLUDES
31
32# When common.subr is included, it automatically scans "$@" for `-d' and/or
33# `-D file' arguments to conditionally enable debugging. Similarly, when
34# dialog.subr is included, it automatically scans "$@" for `-X' and/or `-S'.
35# To prevent this scanning from becoming confused by extra options, define
36# any/all extra arguments to use in the optstring to getopts when scanning

--- 127 unchanged lines hidden (view full) ---

164 local menu_list="
165 'X' '$msg_exit' '$msg_exit_bsdconfig'
166 '1' '$msg_usage' '$msg_quick_start_how_to_use_this_menu_system'
167 " # END-QUOTE
168 local defaultitem= # Calculated below
169 local hline=
170
171 local sanitize_awk="{ gsub(/'/, \"'\\\\''\"); print }"
29#
30############################################################ INCLUDES
31
32# When common.subr is included, it automatically scans "$@" for `-d' and/or
33# `-D file' arguments to conditionally enable debugging. Similarly, when
34# dialog.subr is included, it automatically scans "$@" for `-X' and/or `-S'.
35# To prevent this scanning from becoming confused by extra options, define
36# any/all extra arguments to use in the optstring to getopts when scanning

--- 127 unchanged lines hidden (view full) ---

164 local menu_list="
165 'X' '$msg_exit' '$msg_exit_bsdconfig'
166 '1' '$msg_usage' '$msg_quick_start_how_to_use_this_menu_system'
167 " # END-QUOTE
168 local defaultitem= # Calculated below
169 local hline=
170
171 local sanitize_awk="{ gsub(/'/, \"'\\\\''\"); print }"
172
173 local menuitem menu_title menu_help menu_selection index=2
174 for menuitem in $( cd $BSDCFG_LIBE && ls -d [0-9][0-9][0-9].* ); do
175 [ $index -lt ${#DIALOG_MENU_TAGS} ] || break
176 tag=$( f_substr "$DIALOG_MENU_TAGS" $index 1 )
177
178 menu_program=
179 menu_title=
180 menu_help=

--- 179 unchanged lines hidden ---
172 local menuitem menu_title menu_help menu_selection index=2
173 for menuitem in $( cd $BSDCFG_LIBE && ls -d [0-9][0-9][0-9].* ); do
174 [ $index -lt ${#DIALOG_MENU_TAGS} ] || break
175 tag=$( f_substr "$DIALOG_MENU_TAGS" $index 1 )
176
177 menu_program=
178 menu_title=
179 menu_help=

--- 179 unchanged lines hidden ---