]> projects.mako.cc - beamer-mako/blob - new_beamer_presentation
fixed location of the git revid on the titlepage
[beamer-mako] / new_beamer_presentation
1 #!/bin/sh
2
3 # Helper script to export LaTeX templates for new documents
4 # Copyright (c) 2009 Benjamin Mako Hill <mako@atdot.cc>
5 # Released under the GPLv3 or later.
6
7 CURDIR=`pwd`
8
9 if test $1
10 then
11     cd $HOME/tex/beamer-mako
12     git checkout-index -f --prefix=$CURDIR/$1/ $(find template -not -type d)
13     cd $CURDIR
14
15     # get rid of paper_template subdir
16     mv $1/template/* $1
17     rm -rf $CURDIR/$1/template
18
19     mv $1/example.tex $1/$1.tex
20 else
21     echo "specifiy a directory where the template should go";
22 fi

Benjamin Mako Hill || Want to submit a patch?