#!/bin/sh -ex # $Id$ # Test tl-makeself, e.g., with spaces in filenames. Public domain. # # Assumes $lc is set to the tlcritical dir; copies from there # to make the test directory in which we run makeself and then try the # update. # # Although having the source in a spaceful directory is not # needed, might as well test that too unless inconvenient. # to set up: testdir=${2-"/tmp/krit"} # spc" rm -rf "$testdir" mkdir "$testdir" rsync -a "$lc"/{archive,tlpkg} "$testdir" cd "$testdir" # because makeself writes to the current directory rm -f update*sh # remove previous attempts tl-makeself-from-tlnet "$testdir" ls -l "$testdir" # Using ../dev/profiles/TLspace.pro results in "/tmp/ki sp", # but most of the dev/profiles just install in /tmp/ki. tl=${1-"/tmp/ki"} # sp" cd "$tl" # Now try running the updater in the installed tree. PATH=$tl/bin/x86_64-linux:/usr/local/bin:/usr/bin:/bin "$testdir"/update-tlmgr-r*.sh #-- --debug