diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2011-05-29 08:47:25 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2011-05-29 08:47:25 +0000 |
commit | dd3502855eeb1791642556844097e47414580cad (patch) | |
tree | 979d4a2291b6152139181e5214975c3632a3debb | |
parent | d33ab02a9b8af6b801b76cae41e989a7b45b7a40 (diff) |
tl-portable[.bat] deleted: no longer relevant
git-svn-id: svn://tug.org/texlive/trunk@22668 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/tl-portable | 110 | ||||
-rwxr-xr-x | Master/tl-portable.bat | 65 |
2 files changed, 0 insertions, 175 deletions
diff --git a/Master/tl-portable b/Master/tl-portable deleted file mode 100755 index 3d02bbce29f..00000000000 --- a/Master/tl-portable +++ /dev/null @@ -1,110 +0,0 @@ -#! /bin/sh -# $Id$ -# Copyright 2008 Siep Kroonenberg. -# You may freely use, modify and/or distribute this file. - -if test "x$1" = x--help; then - cat <<END_USAGE -Usage: tl-portable -Start a new subshell with the environment set so TeX Live -can be run with minimal impact on the host, that is, -run more or less directly from DVD or USB. - -For more, see the "Maximally portable" section in the TeX Live -documentation (http://tug.org/texlive). -END_USAGE - - exit 0 -fi - -#calculate TeX Live root -#it appears that dirname isn't always available -TEXDIR0=$0 -TEXDIR=${TEXDIR0%/*} -if test "$TEXDIR" = "$TEXDIR0"; then - TEXDIR="." -fi -unset TEXDIR0 - -dirsave=`pwd` -cd $TEXDIR -TEXDIR=`pwd` -cd $dirsave - -# Test whether the TeX Live directory is writable. We need an actual -# write test, because network drives aren't always identified -# correctly. We accept negatives at face value. - -if test -w $TEXDIR; then -# make sure $TEXDIR is really writable -testfile=1 - while test -e $TEXDIR/$testfile - do testfile=`expr $testfile + 1` - done - echo Testing whether $TEXDIR is writable... - touch $TEXDIR/$testfile 2>/dev/null - if test -e $TEXDIR/$testfile; then - rm $TEXDIR/$testfile - echo $TEXDIR is writable. - TEXDIRW=$TEXDIR - else - echo $TEXDIR is not writable. - TEXDIRW=$HOME/.tlportable2010 - fi -else - TEXDIRW=$HOME/.tlportable2010 -fi -echo Using $TEXDIRW for generated files. - -platform=`$TEXDIR/install-tl --print-arch` - -if test "$platform" = ""; then - echo 'Platform unsupported' - exit 1 -elif test ! -d $TEXDIR/bin/$platform; then - echo 'Platform unsupported' - exit 1 -fi - -if test "$TEXDIR" = "$TEXDIRW"; then - TEXMFCNF=$TEXDIRW -else - TEXMFCNF=$TEXDIRW/texmf-var/web2c - export TEXMFCNF -fi - -if test ! -r $TEXMFCNF/texmf.cnf; then - TEXLIVE_INSTALL_PREFIX=$TEXDIRW - export TEXLIVE_INSTALL_PREFIX - if $TEXDIR/install-tl --portable --from_dvd --profile /dev/null; then :; else - echo "$0: Initialization of TeX Live for portable use failed!" >&2 - exit 1 - fi - unset TEXLIVE_INSTALL_PREFIX -fi - -# Try to block initialization scripts. -# Set custom prompt for secondary shell, but -# I know of no good way to do this for the C shell. - -ENV=/dev/null -export ENV -PATH=$TEXDIR/bin/$platform:$PATH -export PATH -if test "$SHELL" = /bin/bash; then - PS1='TL \w\$ ' - export PS1 - exec $SHELL --norc -i -elif test "$SHELL" = /bin/zsh; then - PS1='TL %d%% ' - export PS1 - exec $SHELL -f -i -elif test "$SHELL" = /bin/csh; then - exec $SHELL -f -i -elif test "$SHELL" = /bin/tcsh; then - exec $SHELL -f -i -else - PS1='TL $PWD\$ ' - export PS1 - exec $SHELL -f -i -fi diff --git a/Master/tl-portable.bat b/Master/tl-portable.bat deleted file mode 100755 index 348ce79b20e..00000000000 --- a/Master/tl-portable.bat +++ /dev/null @@ -1,65 +0,0 @@ -@echo off -rem Copyright 2008-2009 Siep Kroonenberg, Tomasz M. Trzeciak. -rem You may freely use, modify and/or distribute this file. - -rem First, check if this is DOS based system -rem in DOS '^' is just a normal character -if not ^x==x goto DOS - -rem Abort if we are running from UNC path -if %~d0==\\ goto UNC - -rem use provided Perl -set PERL5LIB=%~dp0tlpkg\tlperl\lib -path %~dp0bin\win32;%path% - -rem Check for writable medium -( echo.>"%~dp0tlwrtest" ) 2>nul || ( goto :from_dvd ) -del "%~dp0tlwrtest" - -rem On writable media we assume an already portable installation -rem if there is texmf.cnf present under TL root -if exist "%~dp0texmf.cnf" goto :tlshell - -rem Otherwise initialize for portable use -set "TEXLIVE_INSTALL_PREFIX=%~dp0?" -set "TEXLIVE_INSTALL_PREFIX=%TEXLIVE_INSTALL_PREFIX:\?=%" -goto :genfiles - -:from_dvd -rem We run from non-writable medium -set TEXMFCNF=%USERPROFILE:\=/%/.tlportable2010/texmf-var/web2c -if exist "%TEXMFCNF%/texmf.cnf" goto :tlshell -set TEXLIVE_INSTALL_PREFIX=%USERPROFILE%\.tlportable2010 - -:genfiles -echo About to generate some files in "%TEXLIVE_INSTALL_PREFIX%" -pause -rem Make -portable -from_dvd installation to generate necessary stuff -rem The -profile nul hack makes installation unattended -"%~dp0tlpkg\tlperl\bin\perl.exe" "%~dp0install-tl" -portable -from_dvd -profile nul -if errorlevel 1 goto :failedinit - -:tlshell -rem start new command interperter with customized prompt and window title -rem reuse console window of this interpreter and terminate it after that -if not defined prompt set prompt=$P$G -start /b "TL-SHELL" "%ComSpec%" /k "title TL-SHELL& prompt TL$S%prompt%" -exit - -:failedinit -echo Initialization of TeX Live for portable use failed! -pause -exit /b 1 - -:UNC -echo Cannot run from UNC path. -echo Map network drive to a drive letter and rerun the script. -echo You can use pushd/popd commands for temporary mapping. -pause -exit /b 1 - -:DOS -echo DOS and Windows 9x systems are not supported. Sorry. -echo Windows 2000 or newer is required. -pause |