Debian Codegraph @

texmf-dist/doc/latex/tlc-article/bin/deploy

raw
1 #!/bin/bash
2 # Deploy a new LaTeX style or package.
3 #
4 # Usage:
5 # deploy tlc-article.cls
6 #
7 # Note:
8 # I use this script to test my deployment before publishing with CTAN.
9 # ------------------------------------------------------------------------------
10 main() {
11 mkdir -vp $(kpsewhich -var-value TEXMFLOCAL)/tex/latex/${1%.}
12 cp -v $1 $(kpsewhich -var-value TEXMFLOCAL)/tex/latex/${1%.}/.
13 mktexlsr $(kpsewhich -var-value TEXMFLOCAL)
14 }
15
16 # ------------------------------------------------------------------------------
17 # Kick start start this script.
18 # ------------------------------------------------------------------------------
19 main $@