summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-try-makeself
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-08-01 02:04:28 +0000
committerKarl Berry <karl@freefriends.org>2018-08-01 02:04:28 +0000
commitc70a9d62d23e2c3bd11719ef5af274c9a0c8471c (patch)
treeeac9b16dbb002e5ad79ff8067f7763187eef7dcb /Master/tlpkg/bin/tl-try-makeself
parent93cb3b67055ad40191ca6c7556e876ea5c05bd29 (diff)
bin/tl-makeself-from-tlnet: new -- --debug option for embedded script;
copy Windows support files into archive; special case installation of xz.exe, wget.exe, tar.exe if we are updating the win32 platform. https://github.com/amaxwell/tlutility/issues/65 bin/tl-try-makeself: allow args to override, default to /tmp/krit and /tmp/ki. bin/tl-try-install: allow arg to specify profile; doc. dev/profiles/TLinfra+exe.pro: new test profile with multiple platforms, including Windows. Doc updates to other *.pro. install-tl: do not output Perl warning if binary_* is specified without a value; doc. (Not yet implemented: should give our own warning.) git-svn-id: svn://tug.org/texlive/trunk@48328 c570f23f-e606-0410-a88d-b1316a301751
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