]> git.plutz.net Git - confetti/blobdiff - actions/generate_courselist.sh
fix faulty include name, missing functions, hence missing information on cover sheet
[confetti] / actions / generate_courselist.sh
index 4b9c4ae1d5ff11aaafc220eebc1b25eac2abeaef..b0897c4fdee3d6072fe2369d13ab69730d1c5202 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/zsh
 
-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2016 Paul Hänsch
 #
 # This file is part of Confetti.
 # 
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
 pdflatex="$(where pdflatex |head -n1 || echo false)"
-course="$_GET[\"course\"]"
-fromdate=$_GET['fromdate']
+course="${_GET[course]}"
+fromdate=$_GET[fromdate]
 fromdate=$(date -d "$fromdate" +%s)
 [ -z "$fromdate" ] && fromdate=$(date +%s)
 
-. ${_EXEC}/pages/courses.sh loadfunctions
-. ${_EXEC}/pages/attendees.sh loadfunctions
+. ${_EXEC}/pages/courses.sh
+. ${_EXEC}/pages/cards.sh
 
 tex_clean() { #in dire need for improvement
-  echo "$*" |tr -d '{&}\'
+  echo "$*" |tr -d '{&}\\'
 }