-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare.sh
executable file
·64 lines (56 loc) · 1.49 KB
/
prepare.sh
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
#!/usr/bin/env bash
set -e
get_platform () {
case "$OSTYPE" in
darwin*) echo "darwin" ;;
linux*) echo "linux" ;;
*) echo "Unsupported platform" >&2; exit -1 ;;
esac
}
TARGET_DIR=$PWD/texlive
rm -rf $TARGET_DIR
DATE=`date -ju`
PROFILE=texlive.profile
cat > $PROFILE <<END_CAT
# texlive.profile generated on $DATE
selected_scheme scheme-custom
TEXDIR $TARGET_DIR
TEXMFHOME $TARGET_DIR/texmf
TEXMFLOCAL $TARGET_DIR/texmf-local
TEXMFCONFIG $TARGET_DIR/texmf-config
TEXMFSYSCONFIG $TARGET_DIR/texmf-config
TEXMFVAR $TARGET_DIR/texmf-var
TEXMFSYSVAR $TARGET_DIR/texmf-var
binary_x86_64-darwin 1
binary_x86_64-linux 1
collection-basic 1
collection-binextra 1
collection-latex 1
option_adjustrepo 1
option_autobackup 0
option_desktop_integration 0
option_doc 0
option_file_assocs 0
option_fmt 1
option_letter 0
option_menu_integration 0
option_path 0
option_post_code 1
option_src 0
option_sys_bin /usr/local/bin
option_sys_info /usr/local/share/info
option_sys_man /usr/local/share/man
option_w32_multi_user 0
option_write18_restricted 1
portable 1
END_CAT
rm -f installation.profile
install-tl-*/install-tl -profile $PROFILE
# Install individual packages...
PATH="$TARGET_DIR/bin/x86_64-$(get_platform):$PATH"
tlmgr install datatool etoolbox feynmf fp framed glossaries index metapost mfirstuc nomencl substr supertabular textcase xfor xkeyval
rm -rf $TARGET_DIR/texmf-dist/doc
rm -rf $TARGET_DIR/texmf-dist/source
rm -f texlive.tar.xz
echo "Creating tarball..."
XZ_OPT=-9 tar cJf texlive.tar.xz texlive