#!/bin/sh # # InstallNTeX V2.3.2 # Install NTeX distribution # # Copyright (C) 1995-96 Frank Langbein (langbein@mathematik.uni-stuttgart.de) # All rights reserved. This file is part of the NTeX system. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or (at # your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 675 Mass Ave, Cambridge, MA 02139, USA. # # Usage: # Call InstallNTeX either from the NTeX distribution directory (detected # by the file $INSTALLIDENT in the directory of InstallNTeX) for the basic # installation of NTeX or from $ADMDIR ($INSTALLIDENT is not found) for # further installation and configuration. # # type `InstallNTeX --help' for a description # script="`basename $0`" export script version=2.3.2 export version # NTeX RELEASE NTEX_VERSION=2 NTEX_RELEASE=3 NTEX_PATCH=2 NTEX_RELEASEDATE=08/23/98 NTEX_RELEASEAUTHOR="Frank C. Langbein " NTEX_TARGET=i486-linux NTEX_SYSTEMS=i486-linux:hppa1.1-hp-hpux9.03-X11R5:hppa1.1-hp-hpux9.03-X11R6:m68k-hp-hpux8.00:powerpc-ibm-aix3.2.5:rs6000-ibm-aix3.2.5:mips-sgi-irix5.3:mips-dec-ultrix4.4:alpha-dec-osf3.2 NTEX_DISKFS=minix NTEX_SLACKWAREDIR=/var/adm/packages NTEX_DEBIANDIR=/var/lib/dpkg export NTEX_VERSION export NTEX_RELEASE export NTEX_PATCH export NTEX_RELEASEDATE export NTEX_TARGET export NTEX_SYSTEMS export NTEX_DISKFS export NTEX_SLACKWAREDIR export NTEX_DEBIANDIR # Global Variables INSTALLSET=ntex export INSTALLSET NTEXBASEPKG=ntex export NTEXBASEPKG INSTALLIDENT=$NTEXBASEPKG.pkg export INSTALLIDENT if [ -z "$TEXMFCNF" ]; then TEXMFCNFPATH=/etc:/usr/etc:/usr/local/etc:/usr/lib/texmf/web2c:/usr/local/lib/texmf/web2c:/usr/tex/web2c:/usr/local/tex/web2c else TEXMFCNFPATH="$TEXMFCNF" fi export TEXMFCNFPATH if [ -z "$TEXMF_CNF" ]; then for d in `echo $TEXMFCNFPATH | sed -e 's,:, ,g'` do if [ -r "$d/texmf.cnf" ]; then TEXMF_CNF=$d/texmf.cnf break fi done fi export TEXMF_CNF ############################################################################### # # kpseexp.sh # kpseexp() { if [ "$1" != -expand ]; then echo "$script: interal error: kpseexp called with wrong options" 1>&2 exit 1 fi EXPVAR="$2" if [ "`echo $EXPVAR | cut -c1`" != '$' ]; then echo "$EXPVAR" else EXPVAR="`echo $EXPVAR | cut -c2-`" if [ -z "$TEXMF_CNF" ]; then for d in `echo $TEXMFCNFPATH | $SED -e 's,:, ,g'` do if [ -r "$d/texmf.cnf" ]; then TEXMF_CNF="$d/texmf.cnf" break fi done fi if [ -r "$TEXMF_CNF" ]; then TEXMF_DIR=`$GREP '^TEXMF = ' "$TEXMF_CNF" | cut -d= -f2 | $SED -e 's,^ *,,'` if [ "$EXPVAR" != TEXMF ]; then $GREP "^$EXPVAR = " "$TEXMF_CNF" | cut -d= -f2 \ | $SED -e 's,^ *,,' -e "s,\$TEXMF,$TEXMF_DIR,g" else echo $TEXMF_DIR fi else echo "$script: texmf.cnf not found in $TEXMFCNFPATH" 1>&2 exit 1 fi fi } ############################################################################### # # Ask for dir variable # read_dir_var() { ALOOP=t while [ "$ALOOP" = t ] do echo $ECHON "$1 [$2]: " $ECHOC ANS="" read ANS test -z "$ANS" && ANS="$2" if [ "`echo $ANS | cut -c1`" != / ]; then echo "No absolute path!" elif [ "$3" = C -a -r "$ANS" ]; then SLOOP=t while [ "$SLOOP" = t ] do echo $ECHON "$ANS already exists! Continue [yn]? " $ECHOC ANSW="" read ANSW if [ "$ANSW" = y -o "$ANSW" = Y ]; then ALOOP=f SLOOP=f elif [ "$ANSW" = n -o "$ANSW" = N ]; then SLOOP=f fi done else ALOOP=f fi done eval $1=\"$ANS\" eval export $1 } ############################################################################### # # make dir chain # mk_dirchain() { P="" for E in `echo $1 | $SED -e 's,/, ,g'` do P="$P/$E" if [ ! -d "$P" ]; then if [ -r "$P" ]; then $RM -f $P fi error="`$MKDIR $P 2>&1`" if [ "$?" != "0" -o ! -d "$P" ]; then echo "$script: failed to create '$P'" 1>&2 echo "$script: $error" 1>&2 exit 1 fi $CHMOD 0755 "$P" 1>$DEVNULL 2>&1 $CHGRP "$GROUP" "$P" 1>$DEVNULL 2>&1 $CHOWN "$OWNER" "$P" 1>$DEVNULL 2>&1 fi done } ############################################################################### # # make directory # make_dir() { echo $ECHON "$1: "$ECHOC if [ -d "$2" ]; then echo $ECHON " exists"$ECHOC if [ "$3" = D -a -n "`(cd $2; ls -A)`" ]; then if [ -n "$ECHON" -o -n "$ECHOC" ]; then echo $ECHON ","$ECHOC fi echo $ECHON " removing contents"$ECHOC (cd "$2"; $RM -rf *) fi else if [ -r "$2" ]; then echo $ECHON " no directory, removing,"$ECHOC $RM -f "$2" fi echo $ECHON " creating"$ECHOC mk_dirchain "$2" fi echo ", setting permissions" $CHMOD "$4" "$2" 1>$DEVNULL 2>&1 $CHGRP "$GROUP" "$2" 1>$DEVNULL 2>&1 $CHOWN "$OWNER" "$2" 1>$DEVNULL 2>&1 } ############################################################################### # # Create TDS links # make_tds_ln() { echo $ECHON "$1:"$ECHOC if [ "$2" = "$3" ]; then echo $ECHON " TDS conform"$ECHOC elif [ ! -d "$3" ]; then $RM -f "$3" echo $ECHON " creating link"$ECHOC error="`$LN -s $2 $3 2>&1`" if [ "$?" != "0" -o ! -L "$3" ]; then echo "$script: failed to link $2 to $3" 1>&2 echo "$script: $error" 1>&2 exit 1 fi else echo $ECHON " exists"$ECHOC fi echo } ############################################################################### # # Install file # install_file() { if [ -r "$1" ]; then echo "copying $1" error="`$CP $1 $2 2>&1`" if [ "$?" != 0 -o ! -r "$2" ]; then echo "$script: failed to copy $1 to $2" 1>&2 echo "$script: $error" 1>&2 exit 1 fi $CHMOD 0644 "$2" 1>$DEVNULL 2>&1 $CHGRP "$GROUP" "$2" 1>$DEVNULL 2>&1 $CHOWN "$OWNER" "$2" 1>$DEVNULL 2>&1 else echo "$script: $1 does not exist" 1>&2 exit 1 fi } ############################################################################### # # Symbolic links # link_file() { if [ -d "$1" ]; then echo "creating link $2" (cd "$1" $RM -rf "$2" 1>$DEVNULL 2>&1 error="`$LN -s $3 $2 2>&1`" if [ "$?" != 0 -o ! -r "$2" ]; then echo "$script: failed to create $2" 1>&2 echo "$script: $error" 1>&2 exit 1 fi) else echo "$script: $1 does not exist" 1>&2 exit 1 fi } ############################################################################### # # Initial Installation # init_ntex() { if [ "$1" = update ]; then UPDATE=t else UPDATE=f fi cd `dirname $ntexpkg` $RM -rf "$NTEX_TMPDIR" error="`$MKDIR $NTEX_TMPDIR 2>&1`" if [ "$?" != 0 -o ! -d "$NTEX_TMPDIR" ]; then echo 1>&2 echo "$script: failed to create \`$NTEX_TMPDIR'" 1>&2 echo "$script: $error" 1>&2 exit 1 fi $CHMOD 0750 "$NTEX_TMPDIR" trap "cd /; $RM -rf $GLOBALTMPDIR/NTeX-null.$$ $NTEX_TMPDIR; exit 0" 0 1 2 15 cat <: EOD LOOP2=t while [ "$LOOP2" = t ] do echo $ECHON "Path for texmf.cnf: "$ECHOC read ANS if [ -d "$ANS" ]; then TEXMFCNFDIR="$ANS" TEXMFCNF="$ANS:" export TEXMFCNF LOOP2=f else echo "$ANS is not a directory" fi done ;; q|Q) echo echo "quitting..." exit 1 ;; *) if [ "$ANS" = 4 -a "$XDIR" = t ]; then TEXMFCNFDIR="$TEXMF/web2c" else LOOP=t fi ;; esac done export TEXMFCNFDIR TEXMF_CNF="$TEXMFCNFDIR/texmf.cnf" export TEXMF_CNF cat <. To enable this feature MULTI_BINDIRS has to be set \`true'. Just do this if you really plan to provide binaries for non-Linux systems. I this case you have to install a NTeX-binary package or compile the sources yourself. EOD LOOP=t while [ "$LOOP" = t ] do echo $ECHON "MULTI_BINDIRS [false]: "$ECHOC read ANS if [ -z "$ANS" ]; then MULTI_BINDIRS=false LOOP=f elif [ "$ANS" = true -o "$ANS" = false ]; then MULTI_BINDIRS="$ANS" LOOP=f fi done export MULTI_BINDIRS else echo " Updating" EXIT=f if [ -z "`$GREP '% NT[eE]X texmf.cnf --' $TEXMF_CNF`" ]; then echo "$TEXMF_CNF is not from NTeX." 1>&2 EXIT=t fi SHAREDLIBDIR="`$KPSEWHICH -expand '$SHAREDLIBDIR'`" if [ -z "$SHAREDLIBDIR" ]; then SHAREDLIBDIR=/usr/lib fi export SHAREDLIBDIR for var in ADMDIR VARDIR TEXMF INFODIR BINDIR SRCDIR MANDIR DOCDIR \ ELISPDIR MULTI_BINDIRS do eval $var=\"`$KPSEWHICH -expand '$'$var`\" if [ -z "`eval echo '$'$var`" ]; then echo "$script: Can't find $var in $TEXMF_CNF" 1>&2 EXIT=t fi eval export $var done if [ "$EXIT" = t ]; then echo "$script: You should remove the old TeX installation and install from" echo "$script: scratch." exit 1 fi TEXMFCNFDIR="`echo $TEXMF_CNF | $SED -e 's,texmf.cnf$,,'`" export TEXMFCNFDIR cat <$ADMDIR/scripts/config.guess <. ## The master version of this file is at the FSF in /home/gd/gnu/lib. ## ## This script attempts to guess a canonical system name similar to ## config.sub. If it succeeds, it prints the system name on stdout, and ## exits with 0. Otherwise, it exits with 1. ## ## The plan is that this can be called by configure scripts if you ## don't specify an explicit system type (host/target name). ## ## Only a few systems have been added to this list; please add others ## (but try to keep the structure clean). ## # #if [ -c /dev/null -a -w /dev/null ]; then # DEVNULL=/dev/null #else # DEVNULL="/tmp/config.guess-null" # echo # echo "$script: no null device file found, using ordinary file $DEVNULL" #fi #export DEVNULL # ## This is needed to find uname on a Pyramid OSx when run in the BSD universe. ## (ghazi@noc.rutgers.edu 8/24/94.) #if (test -f /.attbin/uname) >${DEVNULL} 2>&1 ; then # PATH=\$PATH:/.attbin ; export PATH #fi # #UNAME_MACHINE=\`(uname -m) 2>\${DEVNULL}\` || UNAME_MACHINE=unknown #UNAME_RELEASE=\`(uname -r) 2>\${DEVNULL}\` || UNAME_RELEASE=unknown #UNAME_SYSTEM=\`(uname -s) 2>\${DEVNULL}\` || UNAME_SYSTEM=unknown #UNAME_VERSION=\`(uname -v) 2>\${DEVNULL}\` || UNAME_VERSION=unknown # #trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 # ## Note: order is significant - the case branches are not exclusive. # #case "\${UNAME_MACHINE}:\${UNAME_SYSTEM}:\${UNAME_RELEASE}:\${UNAME_VERSION}" in # alpha:OSF1:V*:*) # # After 1.2, OSF1 uses "V1.3" for uname -r. # echo alpha-dec-osf\`echo \${UNAME_RELEASE} | sed -e 's/^V//'\` # exit 0 ;; # alpha:OSF1:*:*) # # 1.2 uses "1.2" for uname -r. # echo alpha-dec-osf\${UNAME_RELEASE} # exit 0 ;; # 21064:Windows_NT:50:3) # echo alpha-dec-winnt3.5 # exit 0 ;; # amiga:NetBSD:*:*) # echo m68k-cbm-netbsd\${UNAME_RELEASE} # exit 0 ;; # arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) # echo arm-acorn-riscix\${UNAME_RELEASE} # exit 0;; # Pyramid*:OSx*:*:*) # if test "\`(/bin/universe) 2>\${DEVNULL}\`" = att ; then # echo pyramid-pyramid-sysv3 # else # echo pyramid-pyramid-bsd # fi # exit 0 ;; # sun4*:SunOS:5.*:*) # echo sparc-sun-solaris2\`echo \${UNAME_RELEASE}|sed -e 's/[^.]*//'\` # exit 0 ;; # i86pc:SunOS:5.*:*) # echo i386-unknown-solaris2\`echo \${UNAME_RELEASE}|sed -e 's/[^.]*//'\` # exit 0 ;; # sun4*:SunOS:6*:*) # # According to config.sub, this is the proper way to canonicalize # # SunOS6. Hard to guess exactly what SunOS6 will be like, but # # it's likely to be more like Solaris than SunOS4. # echo sparc-sun-solaris3\`echo \${UNAME_RELEASE}|sed -e 's/[^.]*//'\` # exit 0 ;; # sun4*:SunOS:*:*) # case "\`/usr/bin/arch -k\`" in # Series*|S4*) # UNAME_RELEASE=\`uname -v\` # ;; # esac # # Japanese Language versions have a version number like \`4.1.3-JL'. # echo sparc-sun-sunos\`echo \${UNAME_RELEASE}|sed -e 's/-/_/'\` # exit 0 ;; # sun3*:SunOS:*:*) # echo m68k-sun-sunos\${UNAME_RELEASE} # exit 0 ;; # atari*:NetBSD:*:*) # echo m68k-atari-netbsd\${UNAME_RELEASE} # exit 0 ;; # sun3*:NetBSD:*:*) # echo m68k-sun-netbsd\${UNAME_RELEASE} # exit 0 ;; # mac68k:NetBSD:*:*) # echo m68k-apple-netbsd\${UNAME_RELEASE} # exit 0 ;; # RISC*:ULTRIX:*:*) # echo mips-dec-ultrix\${UNAME_RELEASE} # exit 0 ;; # VAX*:ULTRIX*:*:*) # echo vax-dec-ultrix\${UNAME_RELEASE} # exit 0 ;; # mips:*:5*:RISCos) # echo mips-mips-riscos\${UNAME_RELEASE} # exit 0 ;; # m88k:CX/UX:7*:*) # echo m88k-harris-cxux7 # exit 0 ;; # m88k:*:4*:R4*) # echo m88k-motorola-sysv4 # exit 0 ;; # m88k:*:3*:R3*) # echo m88k-motorola-sysv3 # exit 0 ;; # AViiON:dgux:*:*) # if [ \${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \\ # -o \${TARGET_BINARY_INTERFACE}x = x ] ; then # echo m88k-dg-dgux\${UNAME_RELEASE} # else # echo m88k-dg-dguxbcs\${UNAME_RELEASE} # fi # exit 0 ;; # M88*:DolphinOS:*:*) # DolphinOS (SVR3) # echo m88k-dolphin-sysv3 # exit 0 ;; # M88*:*:R3*:*) # # Delta 88k system running SVR3 # echo m88k-motorola-sysv3 # exit 0 ;; # XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) # echo m88k-tektronix-sysv3 # exit 0 ;; # Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) # echo m68k-tektronix-bsd # exit 0 ;; # *:IRIX*:*:*) # echo mips-sgi-irix\`echo \${UNAME_RELEASE}|sed -e 's/-/_/g'\` # exit 0 ;; # ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. # echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id # exit 0 ;; # Note that: echo "'\`uname -s\`'" gives 'AIX ' # i[34]86:AIX:*:*) # echo i386-ibm-aix # exit 0 ;; # *:AIX:2:3) # if grep bos325 /usr/include/stdio.h >\${DEVNULL} 2>&1; then # sed 's/^ //' << EOF >dummy.c # #include # # main() # { # if (!__power_pc()) # exit(1); # puts("powerpc-ibm-aix3.2.5"); # exit(0); # } #EOF # \${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 # rm -f dummy.c dummy # echo rs6000-ibm-aix3.2.5 # elif grep bos324 /usr/include/stdio.h >\${DEVNULL} 2>&1; then # echo rs6000-ibm-aix3.2.4 # else # echo rs6000-ibm-aix3.2 # fi # exit 0 ;; # *:AIX:*:4) # if /usr/sbin/lsattr -EHl proc0 | grep POWER >\${DEVNULL} 2>&1; then # IBM_ARCH=rs6000 # else # IBM_ARCH=powerpc # fi # if grep bos410 /usr/include/stdio.h >\${DEVNULL} 2>&1; then # IBM_REV=4.1 # elif grep bos411 /usr/include/stdio.h >\${DEVNULL} 2>&1; then # IBM_REV=4.1.1 # else # IBM_REV=4.\${UNAME_RELEASE} # fi # echo \${IBM_ARCH}-ibm-aix\${IBM_REV} # exit 0 ;; # *:AIX:*:*) # echo rs6000-ibm-aix # exit 0 ;; # ibmrt:4.4BSD:*|romp-ibm:BSD:*) # echo romp-ibm-bsd4.4 # exit 0 ;; # ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and # echo romp-ibm-bsd\${UNAME_RELEASE} # 4.3 with uname added to # exit 0 ;; # report: romp-ibm BSD 4.3 # *:BOSX:*:*) # echo rs6000-bull-bosx # exit 0 ;; # DPX/2?00:B.O.S.:*:*) # echo m68k-bull-sysv3 # exit 0 ;; # 9000/[34]??:4.3bsd:1.*:*) # echo m68k-hp-bsd # exit 0 ;; # hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) # echo m68k-hp-bsd4.4 # exit 0 ;; # 9000/[3478]??:HP-UX:*:*) # case "\${UNAME_MACHINE}" in # 9000/31? ) HP_ARCH=m68000 ;; # 9000/[34]?? ) HP_ARCH=m68k ;; # 9000/7?? | 9000/8?7 ) HP_ARCH=hppa1.1 ;; # 9000/8?? ) HP_ARCH=hppa1.0 ;; # esac # HPUX_REV=\`echo \${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'\` # echo \${HP_ARCH}-hp-hpux\${HPUX_REV} # exit 0 ;; # 3050*:HI-UX:*:*) # sed 's/^ //' << EOF >dummy.c # #include # int # main () # { # long cpu = sysconf (_SC_CPU_VERSION); # /* The order matters, because CPU_IS_HP_MC68K erroneously returns # true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct # results, however. */ # if (CPU_IS_PA_RISC (cpu)) # { # switch (cpu) # { # case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; # case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; # case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; # default: puts ("hppa-hitachi-hiuxwe2"); break; # } # } # else if (CPU_IS_HP_MC68K (cpu)) # puts ("m68k-hitachi-hiuxwe2"); # else puts ("unknown-hitachi-hiuxwe2"); # exit (0); # } #EOF # \${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 # rm -f dummy.c dummy # echo unknown-hitachi-hiuxwe2 # exit 0 ;; # 9000/7??:4.3bsd:*:* | 9000/8?7:4.3bsd:*:* ) # echo hppa1.1-hp-bsd # exit 0 ;; # 9000/8??:4.3bsd:*:*) # echo hppa1.0-hp-bsd # exit 0 ;; # hp7??:OSF1:*:* | hp8?7:OSF1:*:* ) # echo hppa1.1-hp-osf # exit 0 ;; # hp8??:OSF1:*:*) # echo hppa1.0-hp-osf # exit 0 ;; # parisc*:Lites*:*:*) # echo hppa1.1-hp-lites # exit 0 ;; # C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) # echo c1-convex-bsd # exit 0 ;; # C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) # if getsysinfo -f scalar_acc # then echo c32-convex-bsd # else echo c2-convex-bsd # fi # exit 0 ;; # C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) # echo c34-convex-bsd # exit 0 ;; # C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) # echo c38-convex-bsd # exit 0 ;; # C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) # echo c4-convex-bsd # exit 0 ;; # CRAY*X-MP:*:*:*) # echo xmp-cray-unicos # exit 0 ;; # CRAY*Y-MP:*:*:*) # echo ymp-cray-unicos\${UNAME_RELEASE} # exit 0 ;; # CRAY*C90:*:*:*) # echo c90-cray-unicos\${UNAME_RELEASE} # exit 0 ;; # CRAY-2:*:*:*) # echo cray2-cray-unicos # exit 0 ;; # hp3[0-9][05]:NetBSD:*:*) # echo m68k-hp-netbsd\${UNAME_RELEASE} # exit 0 ;; # i[34]86:BSD/386:*:* | *:BSD/OS:*:*) # echo \${UNAME_MACHINE}-unknown-bsdi\${UNAME_RELEASE} # exit 0 ;; # *:FreeBSD:*:*) # echo \${UNAME_MACHINE}-unknown-freebsd\`echo \${UNAME_RELEASE}|sed -e 's/[-(].*//'\` # exit 0 ;; # *:NetBSD:*:*) # echo \${UNAME_MACHINE}-unknown-netbsd\`echo \${UNAME_RELEASE}|sed -e 's/[-_].*/\./'\` # exit 0 ;; # *:GNU:*:*) # echo \`echo \${UNAME_MACHINE}|sed -e 's,/.*\$,,'\`-unknown-gnu\`echo \${UNAME_RELEASE}|sed -e 's,/.*\$,,'\` # exit 0 ;; # *:Linux:*:*) # # Systems without a BFD linker # if test -d /usr/lib/ldscripts/. ; then # : # else # echo "\${UNAME_MACHINE}-unknown-linuxoldld" # exit 0 # fi # # Determine whether the default compiler is a.out or elf # cat >dummy.c <\${DEVNULL} && ./dummy "\${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 # rm -f dummy.c dummy;; ## ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions ## are messed up and put the nodename in both sysname and nodename. # i[34]86:DYNIX/ptx:4*:*) # echo i386-sequent-sysv4 # exit 0 ;; # i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*) # if grep Novell /usr/include/link.h >\${DEVNULL} 2>&1; then # echo \${UNAME_MACHINE}-univel-sysv\${UNAME_RELEASE} # else # echo \${UNAME_MACHINE}-unknown-sysv\${UNAME_RELEASE} # fi # exit 0 ;; # i[34]86:*:3.2:*) # if test -f /usr/options/cb.name; then # UNAME_REL=\`sed -n 's/.*Version //p' \${DEVNULL} 2>&1 ; then # UNAME_REL=\`(/bin/uname -X|egrep Release|sed -e 's/.*= //')\` # (/bin/uname -X|egrep i80486 >\${DEVNULL}) && UNAME_MACHINE=i486 # echo \${UNAME_MACHINE}-unknown-sco\$UNAME_REL # else # echo \${UNAME_MACHINE}-unknown-sysv32 # fi # exit 0 ;; # Intel:Mach:3*:*) # echo i386-unknown-mach3 # exit 0 ;; # paragon:*:*:*) # echo i860-intel-osf1 # exit 0 ;; # i860:*:4.*:*) # i860-SVR4 # if grep Stardent /usr/include/sys/uadmin.h >\${DEVNULL} 2>&1 ; then # echo i860-stardent-sysv\${UNAME_RELEASE} # Stardent Vistra i860-SVR4 # else # Add other i860-SVR4 vendors below as they are discovered. # echo i860-unknown-sysv\${UNAME_RELEASE} # Unknown i860-SVR4 # fi # exit 0 ;; # mini*:CTIX:SYS*5:*) # # "miniframe" # echo m68010-convergent-sysv # exit 0 ;; # M680[234]0:*:R3V[567]*:*) # test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; # 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0) # uname -p 2>\${DEVNULL} | grep 86 >\${DEVNULL} \\ # && echo i486-ncr-sysv4.3 && exit 0 ;; # 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) # uname -p 2>\${DEVNULL} | grep 86 >\${DEVNULL} \\ # && echo i486-ncr-sysv4 && exit 0 ;; # m680[234]0:LynxOS:2.2*:*) # echo m68k-lynx-lynxos\${UNAME_RELEASE} # exit 0 ;; # mc68030:UNIX_System_V:4.*:*) # echo m68k-atari-sysv4 # exit 0 ;; # i[34]86:LynxOS:2.2*:*) # echo i386-lynx-lynxos\${UNAME_RELEASE} # exit 0 ;; # TSUNAMI:LynxOS:2.2*:*) # echo sparc-lynx-lynxos\${UNAME_RELEASE} # exit 0 ;; # rs6000:LynxOS:2.2*:*) # echo rs6000-lynx-lynxos\${UNAME_RELEASE} # exit 0 ;; # RM*:SINIX-*:*:*) # echo mips-sni-sysv4 # exit 0 ;; # *:SINIX-*:*:*) # if uname -p 2>\${DEVNULL} >\${DEVNULL} ; then # UNAME_MACHINE=\`(uname -p) 2>\${DEVNULL}\` # echo \${UNAME_MACHINE}-sni-sysv4 # else # echo ns32k-sni-sysv # fi # exit 0 ;; #esac # ##echo '(No uname command or uname output not recognized.)' 1>&2 ##echo "\${UNAME_MACHINE}:\${UNAME_SYSTEM}:\${UNAME_RELEASE}:\${UNAME_VERSION}" 1>&2 # #cat >dummy.c < # printf ("m68k-sony-newsos%s\n", ##ifdef NEWSOS4 # "4" ##else # "" ##endif # ); exit (0); ##endif ##endif # ##if defined (__arm) && defined (__acorn) && defined (__unix) # printf ("arm-acorn-riscix"); exit (0); ##endif # ##if defined (hp300) && !defined (hpux) # printf ("m68k-hp-bsd\n"); exit (0); ##endif # ##if defined (NeXT) ##if !defined (__ARCHITECTURE__) ##define __ARCHITECTURE__ "m68k" ##endif # int version; # version=\`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>\${DEVNULL}\`; # printf ("%s-next-nextstep%s\n", __ARCHITECTURE__, version==2 ? "2" : "3"); # exit (0); ##endif # ##if defined (MULTIMAX) || defined (n16) ##if defined (UMAXV) # printf ("ns32k-encore-sysv\n"); exit (0); ##else ##if defined (CMU) # printf ("ns32k-encore-mach\n"); exit (0); ##else # printf ("ns32k-encore-bsd\n"); exit (0); ##endif ##endif ##endif # ##if defined (__386BSD__) # printf ("i386-unknown-bsd\n"); exit (0); ##endif # ##if defined (sequent) ##if defined (i386) # printf ("i386-sequent-dynix\n"); exit (0); ##endif ##if defined (ns32000) # printf ("ns32k-sequent-dynix\n"); exit (0); ##endif ##endif # ##if defined (_SEQUENT_) # printf ("i386-sequent-ptx\n"); exit (0); ##endif # ##if defined (vax) ##if !defined (ultrix) # printf ("vax-dec-bsd\n"); exit (0); ##else # printf ("vax-dec-ultrix\n"); exit (0); ##endif ##endif # ##if defined (alliant) && defined (i860) # printf ("i860-alliant-bsd\n"); exit (0); ##endif # # exit (1); #} #EOF # #\${CC-cc} dummy.c -o dummy 2>\${DEVNULL} && ./dummy && rm dummy.c dummy && exit 0 #rm -f dummy.c dummy # ## Apollos put the system type in the environment. # #test -d /usr/apollo && { echo \${ISP}-apollo-\${SYSTYPE}; exit 0; } # ## Convex versions that predate uname can use getsysinfo(1) # #if [ -x /usr/convex/getsysinfo ] #then # case \`getsysinfo -f cpu_type\` in # c1*) # echo c1-convex-bsd # exit 0 ;; # c2*) # if getsysinfo -f scalar_acc # then echo c32-convex-bsd # else echo c2-convex-bsd # fi # exit 0 ;; # c34*) # echo c34-convex-bsd # exit 0 ;; # c38*) # echo c38-convex-bsd # exit 0 ;; # c4*) # echo c4-convex-bsd # exit 0 ;; # esac #fi # ##echo '(Unable to guess system type)' 1>&2 # #exit 1 SHAR_EOF $CHMOD 0755 "$ADMDIR/scripts/config.guess" 1>$DEVNULL 2>&1 # set-systems release_system="$NTEX_TARGET" export release_system release_systems="$NTEX_SYSTEMS" export release_systems if [ -r "$ADMDIR/scripts/config.guess" ]; then host_system="`(cd $NTEX_TMPDIR; $SHELL $ADMDIR/scripts/config.guess)`" if [ -z "$host_system" ]; then host_system="$release_system" elif [ "`echo $host_system-- | cut -d- -f3`" = linux ]; then host_system=i486-linux elif [ "`echo $host_system-- | cut -d- -f3`" = linuxaout ]; then host_system=i486-linuxaout elif [ -n "`echo $host_system-- | cut -d- -f3 | ${GREP:-grep} 'hpux'`" -a \ "`echo $host_system | cut -d- -f1-2`" = "hppa1.1-hp" ]; then if [ -d /usr/lib/X11R6 ]; then host_system="$host_system-X11R6" else host_system="$host_system-X11R5" fi fi else host_system="$release_system" fi export host_system if [ "$MULTI_BINDIRS" = true ]; then bintarget="/$host_system" releasetarget="/$release_system" else bintarget="" releasetarget="" fi export bintarget export releasetarget # end set-systems echo warnl="" for p in inimf virmf initex virtex inimp virmp inijtex virjtex \ initexxet virtexxet do l="`$WHICH $p 2>$DEVNULL`" if [ -x "$l" -a "$l" != "$BINDIR$bintarget/$p" ]; then echo "$p found in $l" warnl="$warnl $p" fi done if [ -n "$warnl" ]; then cat <$DEVNULL 2>&1; then echo "libkpathsea.so found in $d" warnl="$warnl $d" fi done if [ -n "$warnl" ]; then cat <$ADMDIR/lib/texmf.in <. #% #% Which file formats use which paths for searches is described in the #% various programs' and the kpathsea documentation. #% #% // means to search subdirectories (recursively). #% A leading !! means to look only in the ls-R db, never on the disk. #% A leading/trailing/doubled : in the paths will be expanded into the #% compile-time default. Probably not what you want. # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% TEXMF #% #% The root of the TeX Directory Structure, containing only TeX-related #% materials. If you are using the TDS all files are found in this #% directory, elsewise this direcotry contains at least links to the files #% located outside this tree which are TDS conform. You can set an #% environment variable to override this if you're testing a new TeX tree, #% without changing anything else. On Unixc system it would traditionally #% be /usr/local/texmf or /usr/local/lib/texmf. You might also consider to #% choose /usr/local/tex # #TEXMF = @TEXMF@ # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% NTeX directories #% #% This variables set the installation directories of NTeX, normally they #% are chosen by the first run of InstallNTeX on your system. Please don't #% change them once you've installed parts of NTeX unless you know exactly #% what you are doing. #% #% There are two ways of configuring these directories. Either choose the #% TeX Directory Standard (TDS) set forth by a TUG Working Group or the #% Linux Filesystem Standard (LFS) by Daniel Quinlan et.al. Sometimes it might #% be useful to mix these two standard for your individual needs. Remember #% that the easiest way to maintain such a large distribution might be to #% locate everything under one directory tree like proposed in the TDS. If you #% don't want to change your PATH, MANPATH, etc. create symbolic links. # #% BINDIR - the direcotry where the binaries are found. This directory can #% contain 'system' sub-directories to allow multiple implenetations to share #% the common directory structure. All system-dependent files are found here. #% The default for the TDS is \$TEXMF/bin, for LFS it's /usr/bin. You might want #% to create symbolic links form \$TEXMF/bin to one of the directories in your #% PATH. # #BINDIR = @BINDIR@ # #% MUTLI_BINDIRS - set to 'true' if BINDIR contains a subdirectories for each #% host type and a scripts subdir. Elsewise set to 'false'. # #MULTI_BINDIRS = @MULTI_BINDIRS@ # #% ADMDIR - the directory containing NTeX's installation and configuration #% files. The default for the TDS is \$TEXMF/ntex, for LFS choose /usr/adm/ntex. # #ADMDIR = @ADMDIR@ # #% DOCDIR - the directory containing all the documentation for TeX. For the TDS #% set this to \$TEXMF/doc, for LFS to /usr/doc/ntex # #DOCDIR = @DOCDIR@ # #% INFODIR - the directory for the TeX-Info .info files. For the TDS set this #% to \$TEXMF/doc/info for LFS set it to /usr/info. Note that the info program #% can handle more than one directory, see INFOPATH below. # #INFODIR = @INFODIR@ # #% MANDIR - the directory containg the unix manuals for the binaries in BINDIR. #% For the TDS choose \$TEXMF/doc/man, for LFS it's /usr/man. # #MANDIR = @MANDIR@ # #% ELISPDIR - the directory containg the elisp (emacs) programs likem AUC-TeX. #% For the TDS choose \$TEXMF/elisp for LFS /usr/lib/emacs/site-lisp. # #ELISPDIR = @ELISPDIR@ # #% SRCDIR - the directory where all the sources are found, these are the program #% sources and the LaTeX dtx sources. The TDS proposes to use \$TEXMF/sources, #% for the LFS use /usr/src/tex. # #SRCDIR = @SRCDIR@ # #% VARDIR - the directory where user generated fonts (.pk and .tfm files) and #% log files are stored. For the TDS a good choice might be \$TEXMF/tmp, for #% LFS use /var/lib/texmf. # #VARDIR = @VARDIR@ # #% ROOT - the root of your file system. It's save to set this to /. It's used #% for files with an absolute paths, etc. # #ROOT = / # #% SHAREDLIBDIR - where the shared libraries for NTeX are installed. #SHAREDLIBDIR = @SHAREDLIBDIR@ # #% TEXMFCNFDIR - the directory where texmf.cnf is found. Normally this is #% somethingl like /etc, /usr/etc or /usr/local/etc. Note that this does not #% give the search path for texmf.cnf, but only the location of the currently #% used texmf.cnf for InstallNTeX. See TEXMFCNF below. # #TEXMFCNFDIR = @TEXMFCNFDIR@ # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% Input files search paths for various programs #% # #% TeX input files -- i.e., anything to be found by \input or \openin, #% including .sty, .eps, etc. Things are confused by the many variants #% of LaTeX, which all have the same filenames. The current recommendation #% is to make \`latex' be latex2e, and if you also want to support latex 2.09, #% call it latex209. Actually the latex and jlatex directories are only #% symbolic links to the 2e directory. So you only have to change these links. #% Earlier entries override later ones, so put TEXINPUTS last. # #% format seachpaths #amstexinputs = \$TEXMF/tex/amstex// #eplaininputs = \$TEXMF/tex/eplain// #jlatexinputs = \$TEXMF/tex/jlatex// #jlatex209inputs = \$TEXMF/tex/jlatex209// #jlatex2einputs = \$TEXMF/tex/jlatex2e// #jplaininputs = \$TEXMF/tex/jplain// #latexinputs = \$TEXMF/tex/latex// #latex209inputs = \$TEXMF/tex/latex209// #latex2einputs = \$TEXMF/tex/latex2e// #mtexinputs = \$TEXMF/tex/mtex// #musictexinputs = \$TEXMF/tex/musictex// #plaininputs = \$TEXMF/tex/plain// #plftexinputs = \$TEXMF/tex/plftex// #generalinputs = \$TEXMF/tex// # #% TEXINPUTS searchpaths #TEXINPUTS.amstex = .:!!\$amstexinputs:!!\$plaininputs:!!\$generalinputs #TEXINPUTS.etex = .:!!\$eplaininputs:!!\$plaininputs:!!\$generalinputs #TEXINPUTS.jlatex = .:!!\$jlatexinputs:!!\$generalinputs #TEXINPUTS.jlatex209 = .:!!\$jlatex209inputs:!!\$generalinputs #TEXINPUTS.jlatex2e = .:!!\$jlatex2einputs:!!\$generalinputs #TEXINPUTS.jtex = .:!!\$jplaininputs:!!\$generalinputs #TEXINPUTS.latex = .:!!\$latexinputs:!!\$generalinputs #TEXINPUTS.latex209 = .:!!\$latex209inputs:!!\$generalinputs #TEXINPUTS.latex2e = .:!!\$latex2einputs:!!\$generalinputs #TEXINPUTS.latexxet = .:!!\$latexinputs:!!\$generalinputs #TEXINPUTS.latexxet209 = .:!!\$latex209inputs:!!\$generalinputs #TEXINPUTS.latexxet2e = .:!!\$latex2einputs:!!\$generalinputs #TEXINPUTS.mtex = .:!!\$mtexinputs:!!\$plaininputs:!!\$generalinputs #TEXINPUTS.musictex = .:!!\$musictexinputs:!!\$generalinputs #TEXINPUTS.tex = .:!!\$plaininputs:!!\$generalinputs #TEXINPUTS.texxet = .:!!\$plaininputs:!!\$generalinputs #TEXINPUTS.plftex = .:!!\$plfinputs:!!\$plaininputs:!!\$generalinputs #TEXINPUTS.initex = .:\$TEXMF/tex/latex2e//cfg:\$TEXMF/tex/latex209//cfg:\$TEXMF/tex/plain//cfg:\$TEXMF/tex//cfg:!!\$latex2einputs:!!\$plaininputs:!!\$generalinputs #TEXINPUTS.inijtex = .:\$TEXMF/tex/jlatex2e//cfg:\$TEXMF/tex/jlatex209//cfg:\$TEXMF/tex/jplain//cfg:\$TEXMF/tex//cfg:!!\$jlatex2einputs:!!\$jplaininputs:!!\$generalinputs #TEXINPUTS.initexxet = .:\$TEXMF/tex/latex2e//cfg:\$TEXMF/tex/plain//cfg:\$TEXMF/tex//cfg:\$TEXMF/tex/amstex/cfg:!!\$latex2einputs:!!\$plaininputs:!!\$generalinputs #TEXINPUTS = .:!!\$generalinputs # #% Metafont input files # #MFINPUTS = .:\$TEXMF/metafont/cfg:!!\$TEXMF/metafont//:!!\$TEXMF/fonts//source:\$TEXMF/fonts//mf:\$TEXMF/fonts/tmp//source:\$TEXMF/fonts/tmp//mf # #% Metapost input files # #MPINPUTS = .:!!\$TEXMF/metapost// # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% Predigested formats and string pools for initex, inimf, inimp #% # #% Formats # #TEXFORMATS = .:\$TEXMF/web2c/ini #MFBASES = .:\$TEXMF/web2c/ini #MPMEMS = .:\$TEXMF/web2c/ini # #% String pools # #TEXPOOL = \$TEXMF/web2c/ini #MFPOOL = \$TEXMF/web2c/ini #MPPOOL = \$TEXMF/web2c/ini # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% Fonts #% # #% Device-independent font metric files. (don't remove or add / at the end of #% the paths!) # #VFFONTS = .:!!\$TEXMF/fonts//vf #TFMFONTS = .:!!\$TEXMF/fonts//tfm:\$TEXMF/fonts/tmp//tfm # #% PK fonts search path #% #% The \$MAKETEX_MODE below means the drivers will not use a cx font when #% the mode is ricoh. If no mode is explicitly specified, kpse_prog_init #% sets MAKETEX_MODE to /, so all subdirectories are searched. See the manual. #% #% xdvi needs to find bitmaps for PostScript fonts, which can be #% generated by standalone programs gsftopk and ps2pk (ps2mf needs no #% special treatment). See xdvik/INSTALL for more info. # #modemfpkdir=\$TEXMF/fonts//pk/\$MAKETEX_MODE #gsftopkpkdir=\$TEXMF/fonts//pk/gsftopk #ps2pkpkdir=\$TEXMF/fonts//pk/ps2pk #tmodemfpkdir=\$TEXMF/fonts/tmp//pk/\$MAKETEX_MODE #tgsftopkpkdir=\$TEXMF/fonts/tmp//pk/gsftopk #tps2pkpkdir=\$TEXMF/fonts/tmp//pk/ps2pk # #PKFONTS.xdvi = .:!!\$modemfpkdir:!!\$gsftopkpkdir:!!\$ps2pkpkdir:\$tmodemfpkdir:\$tgsftopkpkdir:\$tps2pkpkdir #PKFONTS.dvilj = .:!!\$modemfpkdir:!!\$gsftopkpkdir:!!\$ps2pkpkdir:\$tmodemfpkdir:\$tgsftopkpkdir:\$tps2pkpkdir #PKFONTS.dvilj2p = .:!!\$modemfpkdir:!!\$gsftopkpkdir:!!\$ps2pkpkdir:\$tmodemfpkdir:\$tgsftopkpkdir:\$tps2pkpkdir #PKFONTS.dvilj4 = .:!!\$modemfpkdir:!!\$gsftopkpkdir:!!\$ps2pkpkdir:\$tmodemfpkdir:\$tgsftopkpkdir:\$tps2pkpkdir #PKFONTS.dvilj4l = .:!!\$modemfpkdir:!!\$gsftopkpkdir:!!\$ps2pkpkdir:\$tmodemfpkdir:\$tgsftopkpkdir:\$tps2pkpkdir #PKFONTS = .:!!\$modemfpkdir:\$tmodemfpkdir # #% GF fonts search path #% #% only remains in existence because Metafont outputs it (and MF isn't going #% to change). # #GFFONTS = .:\$TEXMF/fonts//gf/\$MAKETEX_MODE # #% GLYPHFONTS #% #% Used to find texfonts.map; also a backup for PKFONTS and GFFONTS, #% but normally that is irrelevant, so don't bother with all subdirectories. # #GLYPHFONTS = .:\$TEXMF/fonts # #% default font generation mode for Metafont # #MFMODE = ljfour # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% TeX #% # #% default tex editor ('_' is ' ' and '!' is '%') # #TEXEDIT = emacs_!s # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% MetaPost #% # #% MetaPost commands # #MPXCOMMAND = \$TEXMF/ntex/scripts/makempx #TROFFMPX = \$TEXMF/ntex/scripts/troffmpx # #% Where dmp looks for troff support files (trfonts.map, trchar.adj, etc.) # #MPLIB = .:!!\$TEXMF/metapost/support// # #% Where dmp looks for troff font tables # #TRFONTS = /usr/lib/groff/font/devps # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% BibTeX #% # #% BibTeX bibliographies # #BIBINPUTS = .:!!\$TEXMF/bibtex/bib// # #% BibTeX style files. # #BSTINPUTS = .:!!\$TEXMF/bibtex/bst// # #% BIBTOOL input path # #BIBTOOLINPUTS = \$TEXMF/bibtool # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% Dvips #% # #% Dvips' config.* files, etc. # #TEXCONFIG = .:~:\$TEXMF/dvips/cfg # #% Dvips' PostScript prologues (.pro) and .pfa/.pfb files. # #DVIPSHEADERS = .:!!\$TEXMF/dvips/postscript//:!!\$TEXMF/fonts//type1 # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% MakeIndex #% # #% search path for MakeIndex styles # #INDEXSTYLE = .:!!$TEXMF/makeindex/ist// # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% XFig #% # #% XFig libdir # #XFIGLIBDIR = \$TEXMF/xfig/cfg # #% XFig tmp dir # #XFIGTMPDIR = /tmp # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% TeX-Info #% # #% PATH for info # #INFOPATH = .:\$TEXMF/doc/info:/usr/local/info:/usr/info # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% Itrans #% #% Indian TeX fonts input path # #ITRANSINPUTS = \$TEXMF/fonts/public/indian # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #% #% General settings #% # #% default printer # #PRINTER = lp0 # #% default editor # #EDITOR = emacs # #% MakeTeX* usage # #MAKETEXTEX = false #MAKETEXMF = true #MAKETEXTFM = true #MAKETEXPK = true # #% LOGFILES for MakeTeX*, set to /dev/null if you want no logging or comment #% the corresponding LOGFILE.MakeTeX* line. You can also use one log file if #% you only set LOGILE. # #LOGFILE.MakeTeXPK = \$TEXMF/ntex/log/MakeTeXPK.log #LOGFILE.MakeTeXTFM = \$TEXMF/ntex/log/MakeTeXTFM.log #LOGFILE.MakeTeXMF = \$TEXMF/ntex/log/MakeTeXMF.log #LOGFILE.MakeTeXTeX = \$TEXMF/ntex/log/MakeTeXTeX.log #LOGFILE = /dev/null # #% Default TeX font sizes #DEFAULT_TEXSIZES = 300:600 # #% Enable this (or set the environment variable) if you want kpathsea to #% log names and times for all files found. # #% TEXMFLOG = \$TEXMF/ntex/log/kpathsea.log # #% The search path for texmf.cnf. This definition isn't used from this .cnf #% file itself (that would be paradoxical), but the compile-time default in #% paths.h is built from it. You can put texmf.cnf in one of these directories. #% Note that only the first texmf.cnf file found is used. # #TEXMFCNF = .:~:/etc:/usr/etc:/usr/local/etc:/usr/lib/texmf/web2c:/usr/local/lib/texmf/web2c:/usr/tex/web2c:/usr/local/tex/web2c SHAR_EOF if [ ! -r "$TEXMF_CNF" -o -n "`$GREP 'NTeX texmf.cnf --' $TEXMF_CNF 2>$DEVNULL`" ]; then sc="" for v in `$GREP "@.*@" $ADMDIR/lib/texmf.in | $SED -e 's,%.*,,g' | cut -d= -f2` do vn="`echo $v | $SED -e 's,^[:alnum:]*@,,g' -e 's,@[:alnum:]*$,,g'`" sc="$sc -e s,@$vn@,`eval echo '$'$vn`," done error="`$SED $sc $ADMDIR/lib/texmf.in 2>&1 1>$TEXMF_CNF`" if [ "$?" != "0" -o -n "$error" ]; then echo "$script: failed to create texmf.cnf" 1>&2 echo "$script: $error" 1>&2 exit 1 fi $CHMOD 0644 $TEXMF_CNF 1>$DEVNULL 2>&1 $CHGRP "$GROUP" $TEXMF_CNF 1>$DEVNULL 2>&1 $CHOWN "$OWNER" $TEXMF_CNF 1>$DEVNULL 2>&1 install_file "$TEXMF_CNF" "$ADMDIR/lib/texmf.cnf.orig" if [ "$TEXMF_CNF" != "$TEXMF/web2c/texmf.cnf" ]; then $RM -rf $TEXMF/web2c/texmf.cnf $LN -s $TEXMF_CNF $TEXMF/web2c/texmf.cnf fi fi echo if [ -r $ntexpkg ]; then echo "Installing $ntexpkg package" $NTEX_GZIP -c -d $ntexpkg | \ (cd "$ADMDIR"; $TAR xpf -) else echo "$script: $ntexpkg not found" 1>&2 exit 1 fi echo echo "Symbolic Links:" link_file "$ADMDIR" InstallNTeX "sbin/InstallNTeX" link_file "$ADMDIR" log "$VARDIR/log" link_file "$TEXMF/fonts" tmp "$VARDIR/fonts" echo echo "Installing optional files:" test -r ./INSTALL && install_file ./INSTALL "$ADMDIR/INSTALL" test -r ./README.NTeX && install_file ./README.NTeX "$ADMDIR/README.NTeX" test -r ./CHANGES && install_file ./CHANGES "$ADMDIR/CHANGES" test -r ./BUGS && install_file ./BUGS "$ADMDIR/BUGS" test -r ./INDEX && install_file ./INDEX "$ADMDIR/INDEX" test -r ./NTeX.lsm && install_file ./NTeX.lsm "$ADMDIR/NTeX.lsm" test -r "./TODO" && install_file ./TODO "$ADMDIR/TODO" for f in `ls NTeX.announce* 2>$DEVNULL` do install_file "./$f" "$ADMDIR/$f" link_file "$DOCDIR/ntex" "$f" "$ADMDIR/$f" done for f in `ls ntex-guide* 2>$DEVNULL` do install_file "./$f" "$DOCDIR/ntex/$f" link_file "$ADMDIR" "$f" "$DOCDIR/ntex/$f" done echo echo "Symbolic links:" link_file "$DOCDIR/ntex" INSTALL "$ADMDIR/INSTALL" link_file "$DOCDIR/ntex" README.NTeX "$ADMDIR/README.NTeX" link_file "$DOCDIR/ntex" CHANGES "$ADMDIR/CHANGES" link_file "$DOCDIR/ntex" BUGS "$ADMDIR/BUGS" link_file "$DOCDIR/ntex" RELEASE "$ADMDIR/lib/release" link_file "$DOCDIR/ntex" INDEX "$ADMDIR/INDEX" link_file "$DOCDIR/ntex" NTeX.lsm "$ADMDIR/NTeX.lsm" test -r "$ADMDIR/pki/ntex.pki" && $RM -rf $ADMDIR/pki/ntex.pki test -r "$ADMDIR/installed/ntex.pki" && $RM -rf $ADMDIR/installed/ntex.pki if [ -d "$DEBIANDIR" -a -x "`$WHICH dpkg 2>$DEVNULL`" ]; then echo "Adding NTeX to available debian packages" $RM -f $NTEX_TMPDIR/NTeX-avail cat >$NTEX_TMPDIR/NTeX-avail <"$DEVNULL" 2>&1 $RM -f $NTEX_TMPDIR/NTeX-avail $NTEX_TMPDIR/NTeX.$$ cat >$NTEX_TMPDIR/NTeX-avail <$NTEX_TMPDIR/status-debian echo >>$NTEX_TMPDIR/status-debian cat $NTEX_TMPDIR/NTeX-avail >>$NTEX_TMPDIR/status-debian $RM -rf $DEBIANDIR/status-old $CP $DEBIANDIR/status $DEBIANDIR/status-old $CHMOD 0644 $DEBIANDIR/status-old $CHGRP root $DEBIANDIR/status-old $CHOWN root $DEBIANDIR/status-old $CP $NTEX_TMPDIR/status-debian $DEBIANDIR/status $CHMOD 0644 $DEBIANDIR/status $CHGRP root $DEBIANDIR/status $CHOWN root $DEBIANDIR/status $RM -rf $DEBIANDIR/status-debian else echo >>$DEBIANDIR/status cat $NTEX_TMPDIR/NTeX-avail >>$DEBIANDIR/status $RM -f $NTEX_TMPDIR/NTeX-avail fi $FIND $ADMDIR -type d -print | $SED -e 's,$,/,' >$NTEX_TMPDIR/NTeX.$$ $FIND $ADMDIR -type f -print >>$NTEX_TMPDIR/NTeX.$$ $FIND $ADMDIR -type l -print >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/INSTALL" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/README.NTeX" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/CHANGES" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/BUGS" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/RELEASE" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/INDEX" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/NTeX.lsm" >>$NTEX_TMPDIR/NTeX.$$ for f in `(cd $DOCDIR/ntex; ls NTeX.announce*)` do echo "$DOCDIR/ntex/$f" >>$NTEX_TMPDIR/NTeX.$$ done for f in `(cd $DOCDIR/ntex; ls ntex-guide*)` do echo "$DOCDIR/ntex/$f" >>$NTEX_TMPDIR/NTeX.$$ done echo "$TEXMF/fonts/tmp" >>$NTEX_TMPDIR/NTeX.$$ $SED -e 's,^\./$,/.,' $NTEX_TMPDIR/NTeX.$$ | \ $SORT -u >$DEBIANDIR/info/$NTEXBASEPKG.list $RM -f $NTEX_TMPDIR/NTeX.$$ elif [ -d "$SLACKWAREDIR" ]; then echo "creating slackware package information for $NTEXBASEPKG" echo "PACKAGE NAME: $NTEXBASEPKG" >$SLACKWAREDIR/$NTEXBASEPKG echo "COMPRESSED PACKAGE SIZE: $CS" >>$SLACKWAREDIR/$NTEXBASEPKG echo "UNCOMPRESSED PACKAGE SIZE: $US" >>$SLACKWAREDIR/$NTEXBASEPKG echo "PACKAGE LOCATION: $DI" >>$SLACKWAREDIR/$NTEXBASEPKG echo "PACKAGE DESCRIPTION:" >>$SLACKWAREDIR/$NTEXBASEPKG echo "$NTEXBASEPKG: $LN $PV" >>$SLACKWAREDIR/$NTEXBASEPKG echo "$NTEXBASEPKG: " >>$SLACKWAREDIR/$NTEXBASEPKG echo "$NTEXBASEPKG: NTeX installation package" >>$SLACKWAREDIR/$NTEXBASEPKG echo "FILE LIST: " >>$SLACKWAREDIR/$NTEXBASEPKG $RM -f $NTEX_TMPDIR/NTeX.$$ $FIND $ADMDIR -type d -print | $SED -e 's,$,/,' >$NTEX_TMPDIR/NTeX.$$ $FIND $ADMDIR -type f -print >>$NTEX_TMPDIR/NTeX.$$ $FIND $ADMDIR -type l -print >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/INSTALL" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/README.NTeX" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/CHANGES" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/BUGS" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/RELEASE" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/INDEX" >>$NTEX_TMPDIR/NTeX.$$ echo "$DOCDIR/ntex/NTeX.lsm" >>$NTEX_TMPDIR/NTeX.$$ for f in `(cd $DOCDIR/ntex; ls NTeX.announce*)` do echo "$DOCDIR/ntex/$f" >>$NTEX_TMPDIR/NTeX.$$ done for f in `(cd $DOCDIR/ntex; ls ntex-guide*)` do echo "$DOCDIR/ntex/$f" >>$NTEX_TMPDIR/NTeX.$$ done echo "$TEXMF/fonts/tmp" >>$NTEX_TMPDIR/NTeX.$$ $SORT $NTEX_TMPDIR/NTeX.$$ >>$SLACKWAREDIR/$NTEXBASEPKG $RM -f $NTEX_TMPDIR/NTeX.$$ fi echo $ECHON "Configuring..."$ECHOC recheck_config="--config" write_system_default="true" . $ADMDIR/scripts/configure echo "done" echo echo "Initial installation finished." echo if [ "$autoinstall" = "f" ]; then LOOP="t" while [ "$LOOP" = "t" ] do echo $ECHON "Continue installation [ynq]? "$ECHOC ANS="" read ANS if [ "$ANS" = "y" -o "$ANS" = "Y" ]; then LOOP="f" echo echo "Running InstallNTeX in $ADMDIR for further installation..." echo cd "$ADMDIR" $SHELL ./InstallNTeX elif [ "$ANS" = "q" -o "$ANS" = "Q" -o "$ANS" = "n" -o "$ANS" = "N" ]; then echo echo "quitting..." exit 1 fi done fi exit 0 } ############################################################################### # # Main Installation # main_ntex() { ADMDIR="`${GREP:-grep} '^ADMDIR *=' $TEXMF_CNF | cut -d= -f2- | \ ${SED:-sed} 's,^ *,,' `" if [ -z "$ADMDIR" ]; then echo "$script: $TEXMF_CNF is not from NTeX" echo "$script: run $script from $INSTALLSET directory" 1>&2 exit 1 fi if [ ! -d "$ADMDIR" ]; then echo "$script: admin dir \`$ADMDIR' does not exist" 1>&2 echo "$script: run $script from $INSTALLSET directory" 1>&2 exit 1 fi export ADMDIR . $ADMDIR/scripts/configure TARGETBINDIR="$BINDIR$releasetarget" export TARGETBINDIR PATH="$BINDIR$bintarget:$PATH" export PATH if [ ! -r "$ADMDIR/lib/release" ]; then echo "$script: \`release' not found in $ADMDIR" 1>&2 exit 1 fi STRING="`$GREP release $ADMDIR/lib/release | cut -d= -f2`" VER="`echo $STRING | cut -d. -f1`" REL="`echo $STRING. | cut -d. -f2`" if [ "$VER" != "$NTEX_VERSION" -o "$REL" != "$NTEX_RELEASE" ]; then echo "$script: Version of NTeX is $VER.$REL, this $script is intended for $NTEX_VERSION.$NTEX_RELEASE" 1>&2 exit 1 fi if [ "$xmode" = - ]; then if [ -n "$WISH" -a -n "$DISPLAY" ]; then xmode=t else xmode=f fi elif [ "$xmode" = t ]; then if [ -z "$WISH" ]; then echo "$script: can't find wish shell" 1>&2 echo $short_help 1>&2 exit 1 fi if [ -z "$DISPLAY" ]; then echo "$script: X DISPLAY not set" 1>&2 echo $short_help 1>&2 exit 1 fi fi if [ "$xmode" = t -a -r "$ADMDIR/scripts/X-menu" ]; then cd $ADMDIR $WISH -f $ADMDIR/scripts/X-menu exit 0 elif [ -r $ADMDIR/scripts/TTY-menu ]; then cd $ADMDIR $SHELL ./scripts/TTY-menu exit 0 else echo "$script: \`TTY-menu' not found" 1>&2 exit 1 fi } ############################################################################### # # Startup # setC=f recheck_config="" export recheck_config setx=f setn=f xmode="-" export xmode installmode="" seti=f short_help="$script: type \`$script --help' for help" for arg in $* do case $arg in --init|-I) if [ "$seti" = t ]; then echo "$script: $arg already specified, option mismatch" 1>&2 echo $short_help 1>&2 exit 1 fi seti=t installmode=init ;; --init-auto) if [ "$seti" = t ]; then echo "$script: $arg already specified, option mismatch" 1>&2 echo $short_help 1>&2 exit 1 fi seti=t installmode=init-auto ;; --ntexpkg=*) if [ "$setn" = t ]; then echo "$script: $arg already specified, option mismatch" 1>&2 echo $short_help 1>&2 exit 1 fi setn=t ntexpkg="`echo $arg | cut -d= -f2-`" ;; --ntexpkg|-n) if [ "$setn" = t ]; then echo "$script: $arg already specified, option mismatch" 1>&2 echo $short_help 1>&2 exit 1 fi setn=t next=$next"ntexpkg:" ;; --install|-i) if [ "$seti" = t ]; then echo "$script: $arg already specified, option mismatch" 1>&2 echo $short_help 1>&2 exit 1 fi seti=t installmode=install ;; --config|-C) if [ "$setC" = t ]; then echo "$script: $arg already specified, option mismatch" 1>&2 echo $short_help 1>&2 exit 1 fi setC=t recheck_config=--config ;; --X|-X) if [ "$setx" = t ]; then echo "$script: X mode already set, option mismatch" 1>&2 echo $short_help 1>&2 exit 1 fi xmode=t setx=t ;; --X=*) if [ "$setx" = t ]; then echo "$script: X mode already set, option mismatch" 1>&2 echo $short_help 1>&2 exit 1 fi DISPLAY="`echo $arg | cut -d= -f2-`" export DISPLAY xmode=t setx=t ;; --noX|-N) if [ "$setx" = t ]; then echo "$script: X mode already set, option mismatch" 1>&2 echo $short_help 1>&2 exit 1 fi xmode=f setx=t ;; --version|-v) echo "NTeX InstallNTeX ($script) V$version" exit 0 ;; --copyright|--copyleft) cat <] Options: --init|-U run initial installation (default if called from NTeX distribution directory) --init-auto run auto init update (do not use unless you know exactly what this is about!) --install|-i run in ordinary installation mode (default if called from ADMDIR) --ntexpkg=| -n location of ntex.pkg (default: ./ntex.pkg) --noX|-X don't use the X frontend (default if X frontend can't be started) --X|-X invoke X frontend (default if invoked under X and Tcl/TK is available) --X= invoke X frontend on display --config|-C recheck NTeX's basic configuration for scripts --copyright| --copyleft print copyright information --help|-h give this help --version|-v display version number EOD exit 0 ;; -*) echo "$script: illegal option $arg" 1>&2 echo $short_help 1>&2 exit 1 ;; *) if [ -n "$next" ]; then c="`echo $next | cut -d: -f1`" next="`echo $next | cut -d: -f2-`" if [ "$c" = ntexpkg ]; then ntexpkg="$arg" fi else echo "$script: illegal option $arg" 1>&2 echo "$short_help" 1>&2 exit 1 fi ;; esac done cd "`dirname $0`" test "$setn" = f && ntexpkg="./$INSTALLIDENT" export ntexpkg if [ "$seti" = f ]; then if [ -r "$ntexpkg" -o -z "$TEXMF_CNF" ]; then installmode=init else installmode=install fi fi if [ "$installmode" = init-auto ]; then installmode=init autoinstall=t else autoinstall=f fi export autoinstall if [ "$setn" = t -a "$installmode" = install ]; then echo "$script: Warning: ignoring --ntexpkg option" 1>&2 fi if [ "$installmode" = init ]; then GLOBALTMPDIR="" for D in /tmp /var/tmp /usr/tmp /usr/local/tmp /usr/local/var/tmp do if [ -d "$D" -a -w "$D" ]; then GLOBALTMPDIR="$D" break fi done if [ -z "$GLOBALTMPDIR" ]; then if [ -w / ]; then GLOBALTMPDIR=/ echo echo "$script: no tmp directory found, using /" 1>&2 else echo echo "$script: no tmp directory found" 1>&2 exit 1 fi fi export GLOBALTMPDIR if [ -z "$NTEX_TMPDIR" ]; then NTEX_TMPDIR="$GLOBALTMPDIR/NTeX-tmp.$$" export NTEX_TMPDIR fi if [ -c /dev/null -a -w /dev/null ]; then DEVNULL=/dev/null else DEVNULL="$GLOBALTMPDIR/NTeX-null" echo echo "$script: no null device file found, using ordinary file $DEVNULL" fi export DEVNULL if (echo "testing\c"; echo 1,2,3) | grep c >$DEVNULL; then if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >$DEVNULL; then ECHON="" ECHOC=' ' else ECHON="-n" ECHOC="" fi else ECHON="" ECHOC='\c' fi export ECHON export ECHOC if [ "$autoinstall" = t ]; then echo $ECHON "Updating NTeX..."$ECHOC else echo $ECHON "Initial Installation..."$ECHOC fi if [ "`echo 123 | cut -c2 2>$DEVNULL`" != 2 -o \ "`echo a=b | cut -d= -f2`" != b -o \ -n "`echo a= | cut -d= -f2`" ]; then echo echo "$script: no working \`cut'. GNU cut from the GNU textutils 1.11 " 1>&2 echo "$script: is known to work. There are problems with some older" 1>&2 echo "$script: versions and non-GNU versions." 1>&2 exit 1 fi for prog in "whence -pc" "whence -p" whence which "type -path" do error="`eval $prog ls 2>$DEVNULL`" if [ "$?" = 0 -a -x "$error" ]; then WHICH="$prog" break fi done if [ -z "$WHICH" ]; then echo echo "$script: no working \`which' found" 1>&2 exit 1 fi export WHICH s="`basename $SHELL`" test "$s" != sh && SHELL=/bin/sh export SHELL for PROG in "SED=gnused gsed sed" \ "GREP=gnugrep ggrep grep" \ "AWK=gnuawk gawk awk" \ "NTEX_GZIP=gzip" \ "TAR=gnutar gtar tar" \ "TR=tr" \ "LN=ln" \ "CP=cp" \ "CPIO=gnucpio gcpio cpio" \ "SORT=sort" \ "FIND=gnufind gfind find" \ "RM=rm" \ "MKDIR=mkdir" \ "CHMOD=chmod" \ "CHOWN=chown" \ "CHGRP=chgrp" \ "EDITOR=gnuemacs emacs vi ed" \ "PAGER=less most more cat" \ "UMASK=umask" do V="`echo $PROG | cut -d= -f1`" eval "$V"=\"\" for P in `echo $PROG | cut -d= -f2` do if [ -x "`$WHICH $P 2>$DEVNULL`" ]; then eval $V=\"$P\" eval export $V break fi done if [ -z "`eval echo \$$V`" ]; then echo echo "$script: \`$V' not found in \$PATH" 1>&2 exit 1 fi done if [ -x "`$WHICH wish 2>$DEVNULL`" ]; then WISH=wish else WISH="" fi export WISH echo test >$GLOBALTMPDIR/NTeX.$$ if [ -r "$GLOBALTMPDIR/NTeX.$$" ]; then OWNER="`ls -l $GLOBALTMPDIR/NTeX.$$ | \ $SED -e 's, *,:,g' | cut -d: -f3`" if [ -z "$OWNER" ]; then if [ -r /etc/passwd ]; then OWNER="`cut -d: -f1,3 /etc/passwd | $GREP ':0$'`" OWNER="`echo $OWNER | $SED -e 's,:.*$,,'`" test -z "$OWNER" && OWNER=root else echo echo "$script: can't read /etc/passwd" 1>&2 exit 1 fi fi export OWNER GROUP="`ls -l $GLOBALTMPDIR/NTeX.$$ | \ $SED -e 's, *,:,g' | cut -d: -f4`" if [ -z "$GROUP" ]; then if [ -r /etc/group ]; then GROUP="`cut -d: -f1,3 /etc/group | $GREP ':0$'`" GROUP="`echo $GROUP | $SED -e 's,:.*$,,'`" test -z "$GROUP" && GROUP=root else echo echo "$script: can't read /etc/group" 1>&2 exit 1 fi fi export GROUP else echo echo "$script: Can't write to $GLOBALTMPDIR" 1>&2 exit 1 fi $RM -rf $GLOBALTMPDIR/NTeX.$$ KPSEWHICH=kpseexp export KPSEWHICH WAIT=f v="`$NTEX_GZIP --version 2>&1`" v="`echo $v | cut -d' ' -f2`" v1="`echo $v | cut -d. -f1`" v2="`echo $v. | cut -d. -f2`" v3="`echo $v.. | cut -d. -f3`" if [ "$v1" -le 1 -a "$v2" -le 2 -a "$v3" -le 2 ]; then echo "WARNING: the versoin of your $NTEX_GZIP is less or equal to 1.2.2!" WAIT=t fi if [ -z "`$TAR --version 2>&1 | $GREP 'GNU tar'`" ]; then echo "WARNING: $TAR is no GNU tar!" WAIT=t fi if [ -z "`$CPIO --version 2>&1 | $GREP 'GNU cpio'`" ]; then echo "WARNING: $CPIO is no GNU cpio!" WAIT=t fi if [ "$WAIT" = t ]; then cat <$DEVNULL`" ]; then LINUX_DISTRIBUTION=debian elif [ -d "$SLACKWAREDIR" ]; then LINUX_DISTRIBUTION=slackware else LINUX_DISTRIBUTION=none fi export LINUX_DISTRIBUTION if [ "$autoinstall" = f ]; then if [ -r "$TEXMF_CNF" ]; then echo "updating NTeX" init_ntex update else echo "first installation of NTeX" init_ntex new fi else echo "auto update NTeX" init_ntex update fi else main_ntex fi