diff bin/mkreport @ 33:3bc2e4f5cc59

Update latex template
author zegervdv <zegervdv@me.com>
date Sat, 05 Apr 2014 14:12:00 +0200
parents d35280c9b023
children 016c657f0c31
line wrap: on
line diff
--- a/bin/mkreport	Fri Apr 04 18:12:59 2014 +0200
+++ b/bin/mkreport	Sat Apr 05 14:12:00 2014 +0200
@@ -1,5 +1,11 @@
 #!/bin/sh
 # Create a new latex report from template
 
-cp $HOME/.templates/report.tex .
-echo "Created report.tex"
+if [ $1 ]; then
+  name=$1
+else
+  name='report.tex'
+fi
+
+cp $HOME/.templates/report.tex $name
+echo "Created $name"