1*bfc3bab8SNathan Whitehorn#!/bin/sh 2*bfc3bab8SNathan Whitehorn#- 3*bfc3bab8SNathan Whitehorn# Copyright (c) 2011 Marc Fonvieille 4*bfc3bab8SNathan Whitehorn# All rights reserved. 5*bfc3bab8SNathan Whitehorn# 6*bfc3bab8SNathan Whitehorn# Redistribution and use in source and binary forms, with or without 7*bfc3bab8SNathan Whitehorn# modification, are permitted provided that the following conditions 8*bfc3bab8SNathan Whitehorn# are met: 9*bfc3bab8SNathan Whitehorn# 1. Redistributions of source code must retain the above copyright 10*bfc3bab8SNathan Whitehorn# notice, this list of conditions and the following disclaimer. 11*bfc3bab8SNathan Whitehorn# 2. Redistributions in binary form must reproduce the above copyright 12*bfc3bab8SNathan Whitehorn# notice, this list of conditions and the following disclaimer in the 13*bfc3bab8SNathan Whitehorn# documentation and/or other materials provided with the distribution. 14*bfc3bab8SNathan Whitehorn# 15*bfc3bab8SNathan Whitehorn# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16*bfc3bab8SNathan Whitehorn# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17*bfc3bab8SNathan Whitehorn# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18*bfc3bab8SNathan Whitehorn# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19*bfc3bab8SNathan Whitehorn# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20*bfc3bab8SNathan Whitehorn# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21*bfc3bab8SNathan Whitehorn# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22*bfc3bab8SNathan Whitehorn# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23*bfc3bab8SNathan Whitehorn# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24*bfc3bab8SNathan Whitehorn# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25*bfc3bab8SNathan Whitehorn# SUCH DAMAGE. 26*bfc3bab8SNathan Whitehorn# 27*bfc3bab8SNathan Whitehorn# $FreeBSD$ 28*bfc3bab8SNathan Whitehorn 29*bfc3bab8SNathan Whitehorn 30*bfc3bab8SNathan Whitehornexec 3>&1 31*bfc3bab8SNathan WhitehornDOCS=$(dialog --backtitle "FreeBSD Installer" \ 32*bfc3bab8SNathan Whitehorn --title "FreeBSD Documentation Installation" --separate-output \ 33*bfc3bab8SNathan Whitehorn --checklist "This menu will allow you to install the whole documentation set 34*bfc3bab8SNathan Whitehornfrom the FreeBSD Documentation Project: Handbook, FAQ and articles.\n\n 35*bfc3bab8SNathan WhitehornPlease select the language versions you wish to install. At minimum, 36*bfc3bab8SNathan Whitehornyou should install the English version, this is the original version 37*bfc3bab8SNathan Whitehornof the documentation.\n\n 38*bfc3bab8SNathan WhitehornNB: This requires a working, configured network connection." 0 0 0 \ 39*bfc3bab8SNathan Whitehorn bn "Bengali Documentation" ${DIST_DOC_BN:-off} \ 40*bfc3bab8SNathan Whitehorn da "Danish Documentation" ${DIST_DOC_DA:-off} \ 41*bfc3bab8SNathan Whitehorn de "German Documentation" ${DIST_DOC_DE:-off} \ 42*bfc3bab8SNathan Whitehorn el "Greek Documentation" ${DIST_DOC_EL:-off} \ 43*bfc3bab8SNathan Whitehorn en "English Documentation (recommended)" ${DIST_DOC_EN:-on} \ 44*bfc3bab8SNathan Whitehorn es "Spanish Documentation" ${DIST_DOC_ES:-off} \ 45*bfc3bab8SNathan Whitehorn fr "French Documentation" ${DIST_DOC_FR:-off} \ 46*bfc3bab8SNathan Whitehorn hu "Hungarian Documentation" ${DIST_DOC_HU:-off} \ 47*bfc3bab8SNathan Whitehorn it "Italian Documentation" ${DIST_DOC_IT:-off} \ 48*bfc3bab8SNathan Whitehorn ja "Japanese Documentation" ${DIST_DOC_JA:-off} \ 49*bfc3bab8SNathan Whitehorn mn "Mongolian Documentation" ${DIST_DOC_MN:-off} \ 50*bfc3bab8SNathan Whitehorn nl "Dutch Documentation" ${DIST_DOC_NL:-off} \ 51*bfc3bab8SNathan Whitehorn pl "Polish Documentation" ${DIST_DOC_PL:-off} \ 52*bfc3bab8SNathan Whitehorn pt "Portuguese Documentation" ${DIST_DOC_PT:-off} \ 53*bfc3bab8SNathan Whitehorn ru "Russian Documentation" ${DIST_DOC_RU:-off} \ 54*bfc3bab8SNathan Whitehorn sr "Serbian Documentation" ${DIST_DOC_SR:-off} \ 55*bfc3bab8SNathan Whitehorn tr "Turkish Documentation" ${DIST_DOC_TR:-off} \ 56*bfc3bab8SNathan Whitehorn zh_cn "Simplified Chinese Documentation" ${DIST_DOC_ZH_CN:-off} \ 57*bfc3bab8SNathan Whitehorn zh_tw "Traditional Chinese Documentation" ${DIST_DOC_ZH_TW:-off} \ 58*bfc3bab8SNathan Whitehorn2>&1 1>&3) 59*bfc3bab8SNathan Whitehorntest $? -eq 0 || exit 0 60*bfc3bab8SNathan Whitehornexec 3>&- 61*bfc3bab8SNathan Whitehorn 62*bfc3bab8SNathan Whitehornclear 63*bfc3bab8SNathan Whitehornecho "FreeBSD Installer" 64*bfc3bab8SNathan Whitehornecho "========================" 65*bfc3bab8SNathan Whitehornecho 66*bfc3bab8SNathan Whitehorn 67*bfc3bab8SNathan Whitehornfor i in $DOCS; do 68*bfc3bab8SNathan Whitehorn pkg_add -C ${BSDINSTALL_CHROOT} -r ${i}-freebsd-doc 69*bfc3bab8SNathan Whitehorndone 70