From: Benjamin Mako Hill Date: Sat, 2 Feb 2013 19:21:21 +0000 (-0500) Subject: add new creation script X-Git-Url: https://projects.mako.cc/source/beamer-mako/commitdiff_plain/0bc6f686791b33c5e97f9d1a6cc9a005446d60c8 add new creation script --- 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