categories.subr (250323) | categories.subr (250536) |
---|---|
1if [ ! "$_PACKAGES_CATEGORIES_SUBR" ]; then _PACKAGES_CATEGORIES_SUBR=1 2# 3# Copyright (c) 2013 Devin Teske 4# All Rights Reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1if [ ! "$_PACKAGES_CATEGORIES_SUBR" ]; then _PACKAGES_CATEGORIES_SUBR=1 2# 3# Copyright (c) 2013 Devin Teske 4# All Rights Reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/usr.sbin/bsdconfig/share/packages/categories.subr 250323 2013-05-07 05:40:20Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/share/packages/categories.subr 250536 2013-05-12 00:40:49Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." packages/categories.subr 34f_include $BSDCFG_SHARE/strings.subr 35 --- 58 unchanged lines hidden (view full) --- 94 # Export the variable for awk(1) ENVIRON visibility 95 export "_category_$varcat" 96 return $SUCCESS 97} 98 99############################################################ MAIN 100 101# | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." packages/categories.subr 34f_include $BSDCFG_SHARE/strings.subr 35 --- 58 unchanged lines hidden (view full) --- 94 # Export the variable for awk(1) ENVIRON visibility 95 export "_category_$varcat" 96 return $SUCCESS 97} 98 99############################################################ MAIN 100 101# |
102# Load descriptions for package categories | 102# Load descriptions for package categories. Note that we don't internationalize 103# category names because this would be confusing for people used to that browse 104# the FTP mirrors or are otherwise familiar with an interface that does not 105# provide internationalized names. The descriptions can be used to provide i18n 106# users a description of the non-i18n category name. |
103# 104f_category() { f_category_desc_set "$1" "$2"; } 105f_category All "$msg_all_available_packages_in_all_categories" 106f_category accessibility "$msg_accessibility_desc" 107f_category afterstep "$msg_afterstep_desc" 108f_category arabic "$msg_arabic_desc" 109f_category archivers "$msg_archivers_desc" 110f_category astro "$msg_astro_desc" --- 93 unchanged lines hidden --- | 107# 108f_category() { f_category_desc_set "$1" "$2"; } 109f_category All "$msg_all_available_packages_in_all_categories" 110f_category accessibility "$msg_accessibility_desc" 111f_category afterstep "$msg_afterstep_desc" 112f_category arabic "$msg_arabic_desc" 113f_category archivers "$msg_archivers_desc" 114f_category astro "$msg_astro_desc" --- 93 unchanged lines hidden --- |