]> code.communitydata.science - cdsc_tex.git/blob - new_tex_letter
added a gitignore file to ignore the auctex stuff
[cdsc_tex.git] / new_tex_letter
1 #!/bin/sh
2 # Helper script to export LaTeX templates for new letters
3 # Copyright (c) 2009 Benjamin Mako Hill <mako@atdot.cc>
4 # Released under the GPLv3 or later.
5
6 CURDIR=`pwd`
7
8 if test $1
9 then
10     cd $HOME/tex/latex_mako
11     git checkout-index -f --prefix=$CURDIR/$1/ letter_template/*
12     cd $CURDIR
13
14     # get rid of paper_template subdir
15     mv $1/letter_template/* $1
16     rm -rf $CURDIR/$1/letter_template
17
18     mv $1/text.tex $1/$1.tex
19 else
20     echo "specifiy a directory where the template should go";
21 fi
22

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