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-makeself15
1 files changed, 9 insertions, 6 deletions
diff --git a/Master/tlpkg/bin/tl-try-makeself b/Master/tlpkg/bin/tl-try-makeself
index 0c2482a926d..386873ae687 100755
--- a/Master/tlpkg/bin/tl-try-makeself
+++ b/Master/tlpkg/bin/tl-try-makeself
@@ -1,10 +1,13 @@
#!/bin/sh -ex
# $Id$
-# Test tl-makeself, e.g., with spaces in filenames. Public domain.
+# Public domain. Originally written 2018, Karl Berry.
#
-# 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.
+# Test tl-makeself-from-tlnt, e.g., with spaces in filenames.
+# First arg is TL installation in which to run the updater [/tmp/ki];
+# second arg is test dir in which to create the updater [/tmp/krit].
+#
+# Assumes $lc is set to the tlcritical dir; copies {archive,tlpkg} from
+# there to make the test directory in which we run makeself.
#
# Although having the source in a spaceful directory is not
# needed, might as well test that too unless inconvenient.
@@ -15,7 +18,7 @@ rm -rf "$testdir"
mkdir "$testdir"
rsync -a "$lc"/{archive,tlpkg} "$testdir"
-cd "$testdir" # because makeself writes to the current directory
+cd "$testdir" # because tl-makeself outputs to the current directory
rm -f update*sh # remove previous attempts
tl-makeself-from-tlnet "$testdir"
ls -l "$testdir"
@@ -26,5 +29,5 @@ 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
+PATH=$tl/bin/x86_64-linux:/usr/bin
"$testdir"/update-tlmgr-r*.sh #-- --debug