forked from mezis/heroku-buildpack-tex
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·65 lines (56 loc) · 2.21 KB
/
install.sh
File metadata and controls
executable file
·65 lines (56 loc) · 2.21 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
#
# Pulls TeXLive binaries and install them in ~/.texlive
#
# This file is meant to live in the S3 bucket, and is accessible at:
# https://goo.gl/FR7t9V
#
set -e
my_url="https://goo.gl/FR7t9V"
base_url="https://heroku-buildpack-tex-mezis.s3.amazonaws.com"
platform=$(uname -m)-$(uname -s | tr A-Z a-z)
usage() {
echo "Usage:"
echo " curl -skL ${my_url} | bash -s -- [-p {prefix}] [-v {version}] [-h]"
echo
echo "Options:"
echo " -h Display this message and exit"
echo " -p {prefix} Install to a given prefix (defaults to vendor/texlive)"
echo " -v {version} Install a particular version (defaults to .texlive-version if present, or to maintainer's)"
exit 0
}
while getopts "hp:v:" o ; do
case "$o" in
p)
prefix=$OPTARG ;;
v)
version=$OPTARG ;;
*)
usage ;;
esac
done
: ${prefix:=vendor/texlive}
bindir=${prefix}/bin/${platform}
if test "$version" = "" ; then
if test -e .texlive-version ; then
version=$(cat .texlive-version)
else
version=$(curl -skL ${base_url}/VERSION)
fi
fi
full_url="${base_url}/texlive-${version}-${platform}.tar.gz"
echo "Fetching and installing TeX Live $version ;"
echo "Installing to $prefix"
test -e $prefix || mkdir -p $prefix
curl -kL -# $full_url | tar -C $prefix -zxf -
echo "Install complete."
echo "Don't forget to add ${bindir} to your PATH."
export PATH=$PATH:$bindir
tlmgr install --reinstall --repository ftp://tug.org/historic/systems/texlive/2014/tlnet-final koma-script
tlmgr install --reinstall --repository ftp://tug.org/historic/systems/texlive/2014/tlnet-final amscls
tlmgr install --reinstall --repository ftp://tug.org/historic/systems/texlive/2014/tlnet-final amsfonts
tlmgr install --reinstall --repository ftp://tug.org/historic/systems/texlive/2014/tlnet-final babel-german
tlmgr install --reinstall --repository ftp://tug.org/historic/systems/texlive/2014/tlnet-final titlesec
tlmgr install --reinstall --repository ftp://tug.org/historic/systems/texlive/2014/tlnet-final sectsty
tlmgr install --reinstall --repository ftp://tug.org/historic/systems/texlive/2014/tlnet-final collection-fontsrecommended
tlmgr install --reinstall --repository ftp://tug.org/historic/systems/texlive/2014/tlnet-final lastpage