]> code.communitydata.science - cdsc_tex.git/blob - new_tex_letter
deleted revealjs presentation file
[cdsc_tex.git] / new_tex_letter
1 #!/bin/sh
2 # Helper script to export LaTeX templates for new letters
3 # Copyright (c) 2009-2016 Benjamin Mako Hill <mako@atdot.cc>
4 # Released under the GPLv3 or later.
5
6 CURDIR=$(pwd)
7 TMPDIR=$(mktemp -d)
8
9 if test $1
10 then
11     cd "$HOME/tex/latex_mako"
12     git archive --format=tar HEAD letter_template|tar x --strip=1 -C "$TMPDIR"
13     cd "$CURDIR"
14
15     # get rid of paper_template subdir
16     mv "$TMPDIR" "$1"
17     cd "$1";
18     mv "text.tex" "$1.tex"
19 else
20     echo "specifiy a directory where the template should go";
21 fi

Community Data Science Collective || Want to submit a patch?