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.
 
  11     cd $HOME/tex/latex_mako
 
  12     git checkout-index -f --prefix=$CURDIR/$1/ paper_template/*
 
  15     # get rid of paper_template subdir
 
  16     mv $1/paper_template/* $1
 
  17     rm -rf $CURDIR/$1/paper_template
 
  19     mv $1/text.tex $1/$1.tex
 
  21     echo "specifiy a directory where the template should go";