summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-try-makeself
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/tl-try-makeself')
-rwxr-xr-xMaster/tlpkg/bin/tl-try-makeself33
1 files changed, 18 insertions, 15 deletions
diff --git a/Master/tlpkg/bin/tl-try-makeself b/Master/tlpkg/bin/tl-try-makeself
index 536261666ec..0c2482a926d 100755
--- a/Master/tlpkg/bin/tl-try-makeself
+++ b/Master/tlpkg/bin/tl-try-makeself
@@ -1,27 +1,30 @@
#!/bin/sh -ex
# $Id$
-# Test tl-makeself with spaces in filenames. Public domain.
+# 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
+# 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 really
-# needed, might as well test that too.
+# Although having the source in a spaceful directory is not
+# needed, might as well test that too unless inconvenient.
# to set up:
-mkdir $crit; cp -r $lc/{archive,tlpkg} $crit
-crit="/tmp/krit sp"
-test -d "$crit" || mkdir "$crit"
-rsync -a $lc/{archive,tlpkg} "$crit"
+testdir=${2-"/tmp/krit"} # spc"
+rm -rf "$testdir"
+mkdir "$testdir"
+rsync -a "$lc"/{archive,tlpkg} "$testdir"
-cd "$crit" # because makeself writes to the current directory
+cd "$testdir" # because makeself writes to the current directory
rm -f update*sh # remove previous attempts
-tl-makeself-from-tlnet "$crit"
-ls -l "$crit"
+tl-makeself-from-tlnet "$testdir"
+ls -l "$testdir"
-# Using ../dev/profiles/TLspace.pro results in:
-tl="/tmp/ki sp"
+# 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:$PATH
-"$crit"/update-tlmgr-r*.sh # --quiet causes gzip error?
+PATH=$tl/bin/x86_64-linux:/usr/local/bin:/usr/bin:/bin
+"$testdir"/update-tlmgr-r*.sh #-- --debug