<commit_before>#!/stand/sh
#
# xf86311 - extract XFree86 3.1.1 onto a FreeBSD 2.1 system.
#
# Written:  February 2nd, 1995
# Copyright (C) 1995 by <NAME>
#
# Permission to copy or use this software for any purpose is granted
# under the terms and conditions stated by the XFree86 Project, Inc.
# copyright, which should also be in the file COPYRIGHT in this distribution.
#
# $Id: extract_xf86311.sh,v 1.6 1995/02/10 05:05:41 jkh Exp $

PATH=/usr/X11R6/bin:/usr/X386/bin:.:$PATH

X11PREFIX=/usr/X11R6
XRELEASE="XFree86 3.1.1"

# Handle the return value from a dialog, doing some pre-processing
# so that each client doesn't have to.
handle_rval()
{ 
        case $1 in
        0)
                return 0
        ;;
        255)
                PS1="subshell# " /stand/sh
        ;;
        *)
                return 1
        ;;
        esac
}

do_selected_install()
{
	for xx in ${SELECTIONS}; do
	   DIST=`eval echo \`echo $xx\``
	   dialog --infobox "Installing ${XRELEASE} component: ${DIST}" -1 -1
	   tar --unlink -zxpf ${DIST}.tgz -C /usr
	done
}

do_configure()
{
	if [ -f ${X11PREFIX}/bin/xf86config ]; then
		dialog --clear
		${X11PREFIX}/bin/xf86config
		dialog --clear
	else
		dialog --msgbox "You must first install the X311bin component" -1 -1
	fi
}

do_select_menu()
{
dialog --title "Please select components from ${XRELEASE}" --checklist \
"Please check off each desired component of ${XRELEASE} for subsequent\n\
unpacking on your system.  Most people will typically need only one\n\
server, and the most reasonable choices have already been set for you by\n\
default.  When everything looks good, select OK to continue.\n\n\
Server notation: 4 bit = 16 color, 8 bit = 256 color,\n\
16 bit = 16k colors, 24 bit = true color." \
-1 -1 8 \
"X311bin" "client applications and shared libs" ON \
"X311fnts" "the misc and 75 dpi fonts" ON \
"X311lib" "data files needed at runtime" ON \
"X311xicf" "xinit runtime configuration file" ON \
"X311xdcf" "xdm runtime configuration file" ON \
"X3118514" "IBM 8514 and true compatibles - 8 bit" OFF \
"X311AGX"  "AGX boards - 8 bit" OFF \
"X311Ma64" "ATI Mach64 boards - 8/16 bit" OFF \
"X311Ma32" "ATI Mach32 boards - 8/16 bit" OFF \
"X311Ma8" "ATI Mach8 boards - 8bit" OFF \
"X311Mono" "VGA, Super-VGA, Hercules, and others - mono" OFF \
"X311P9K" "Weitek P9000 boards (Diamond Viper) - 8/16/24 bit" OFF \
"X311S3" "S3 boards: #9GXE, ActixGE32, SPEA Mercury - 8/16/24 bit" OFF \<commit_msg>Fix embarassing typo pointed out by D<NAME> - 16bit does NOT = 16k colors! :-} Submitted by:	<NAME> <<EMAIL>><commit_after>#!/stand/sh
#
# xf86311 - extract XFree86 3.1.1 onto a FreeBSD 2.1 system.
#
# Written:  February 2nd, 1995
# Copyright (C) 1995 by <NAME>
#
# Permission to copy or use this software for any purpose is granted
# under the terms and conditions stated by the XFree86 Project, Inc.
# copyright, which should also be in the file COPYRIGHT in this distribution.
#
# $Id: extract_xf86311.sh,v 1.7 1995/02/10 06:52:16 jkh Exp $

PATH=/usr/X11R6/bin:/usr/X386/bin:.:$PATH

X11PREFIX=/usr/X11R6
XRELEASE="XFree86 3.1.1"

# Handle the return value from a dialog, doing some pre-processing
# so that each client doesn't have to.
handle_rval()
{ 
        case $1 in
        0)
                return 0
        ;;
        255)
                PS1="subshell# " /stand/sh
        ;;
        *)
                return 1
        ;;
        esac
}

do_selected_install()
{
	for xx in ${SELECTIONS}; do
	   DIST=`eval echo \`echo $xx\``
	   dialog --infobox "Installing ${XRELEASE} component: ${DIST}" -1 -1
	   tar --unlink -zxpf ${DIST}.tgz -C /usr
	done
}

do_configure()
{
	if [ -f ${X11PREFIX}/bin/xf86config ]; then
		dialog --clear
		${X11PREFIX}/bin/xf86config
		dialog --clear
	else
		dialog --msgbox "You must first install the X311bin component" -1 -1
	fi
}

do_select_menu()
{
dialog --title "Please select components from ${XRELEASE}" --checklist \
"Please check off each desired component of ${XRELEASE} for subsequent\n\
unpacking on your system.  Most people will typically need only one\n\
server, and the most reasonable choices have already been set for you by\n\
default.  When everything looks good, select OK to continue.\n\n\
Server notation: 4 bit = 16 color, 8 bit = 256 color,\n\
16 bit = 64k colors, 24 bit = true color." \
-1 -1 8 \
"X311bin" "client applications and shared libs" ON \
"X311fnts" "the misc and 75 dpi fonts" ON \
"X311lib" "data files needed at runtime" ON \
"X311xicf" "xinit runtime configuration file" ON \
"X311xdcf" "xdm runtime configuration file" ON \
"X3118514" "IBM 8514 and true compatibles - 8 bit" OFF \
"X311AGX"  "AGX boards - 8 bit" OFF \
"X311Ma64" "ATI Mach64 boards - 8/16 bit" OFF \
"X311Ma32" "ATI Mach32 boards - 8/16 bit" OFF \
"X311Ma8" "ATI Mach8 boards - 8bit" OFF \
"X311Mono" "VGA, Super-VGA, Hercules, and others - mono" OFF \
"X311P9K" "Weitek P9000 boards (Diamond Viper) - 8/16/24 bit" OFF \
"X311S3" "S3 boards: #9GXE, ActixGE32, SPEA Mercury - 8/16/24 bit" OFF \
{'fraction_non_alphanumeric': 0.11999198717948718, 'fraction_numerical': 0.07572115384615384, 'mean_word_length': 2.9532858273950913, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4919317', 'n_tokens_mistral': 2056, 'n_tokens_neox': 1737, 'n_words': 639}