summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-try-makeself
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-05-08 17:26:47 +0000
committerKarl Berry <karl@freefriends.org>2017-05-08 17:26:47 +0000
commitc43a6e19938380bb01435c9687aaeac2621b962c (patch)
treed79568fad21501809a8482713ef268fa0a950c92 /Master/tlpkg/bin/tl-try-makeself
parentfb7356be8fc2d630c3c088408799c2dc0d325502 (diff)
tl-makeself-from-tlnet: rework to support spaces in source and target
directory paths. More checking, reporting, debugging. tl-test-makeself, tl-test-install: new test scripts. tl-update-tlcritical: doc. tlmgr.pl: ddebug a couple init msgs instead of debug; doc. dev/profiles: new directory of profiles for assorted (manual) testing. git-svn-id: svn://tug.org/texlive/trunk@44249 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-try-makeself')
-rwxr-xr-xMaster/tlpkg/bin/tl-try-makeself27
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/tlpkg/bin/tl-try-makeself b/Master/tlpkg/bin/tl-try-makeself
new file mode 100755
index 00000000000..536261666ec
--- /dev/null
+++ b/Master/tlpkg/bin/tl-try-makeself
@@ -0,0 +1,27 @@
+#!/bin/sh -ex
+# $Id$
+# Test tl-makeself 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
+#
+# Although having the source in a spaceful directory is not really
+# needed, might as well test that too.
+
+# 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"
+
+cd "$crit" # because makeself writes to the current directory
+rm -f update*sh # remove previous attempts
+tl-makeself-from-tlnet "$crit"
+ls -l "$crit"
+
+# Using ../dev/profiles/TLspace.pro results in:
+tl="/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?