X-Git-Url: https://projects.mako.cc/source/beamer-mako/blobdiff_plain/695d5db1f13da3beb3811f213fc2d2efbf292c9a..0bc6f686791b33c5e97f9d1a6cc9a005446d60c8:/new_beamer_presentation diff --git a/new_beamer_presentation b/new_beamer_presentation new file mode 100755 index 0000000..ebba317 --- /dev/null +++ b/new_beamer_presentation @@ -0,0 +1,22 @@ +#!/bin/sh + +# Helper script to export LaTeX templates for new documents +# Copyright (c) 2009 Benjamin Mako Hill +# Released under the GPLv3 or later. + +CURDIR=`pwd` + +if test $1 +then + cd $HOME/tex/beamer-mako + git checkout-index -f --prefix=$CURDIR/$1/ $(find template -not -type d) + cd $CURDIR + + # get rid of paper_template subdir + mv $1/template/* $1 + rm -rf $CURDIR/$1/template + + mv $1/example.tex $1/$1.tex +else + echo "specifiy a directory where the template should go"; +fi