summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-try-makeself
blob: 536261666eccbc71ef76442ca883a3b474fad1a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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?