Commit d87982c9 authored by kroovy's avatar kroovy
Browse files

add more config parameters for better reproducibility; add salt parameter

parent 9ce3a07b
......@@ -4,11 +4,16 @@
#
# must be placed in "pter" folder
############## config ##############
USERNAME=""
PASSWORD=""
SEMESTER="2016WS"
DATE=$(date +%Y%m%d)
DATE="20161129" #$(date +%Y%m%d)
SALT="VtH5SVYN"
VERSION="_v0.1" #format: "_v0.1"
PDF_VIEWER="chromium"
####################################
if [ $# -eq 0 ]; then
......@@ -18,7 +23,7 @@ if [ $# -eq 0 ]; then
elif [ $1 = "-u" -o $1 = "--upload" ]; then
wget --quiet https://pad.finf.uni-hannover.de/p/protokoll$DATE/export/txt -O protokoll.$DATE.md
wget --quiet https://pad.finf.uni-hannover.de/p/protokoll$DATE$SALT/export/txt -O protokoll.$DATE$VERSION.md
./makepdf.sh protokoll.$DATE.md
......@@ -26,10 +31,10 @@ elif [ $1 = "-u" -o $1 = "--upload" ]; then
elif [ $1 = "-p" -o $1 = "--preview" ]; then
wget --quiet https://pad.finf.uni-hannover.de/p/protokoll$DATE/export/txt -O protokoll.$DATE.md
wget --quiet https://pad.finf.uni-hannover.de/p/protokoll$DATE$SALT/export/txt -O protokoll.$DATE$VERSION.md
./makepdf.sh protokoll.$DATE.md
./makepdf.sh protokoll.$DATE$VERSION.md
google-chrome-stable protokoll.$DATE.pdf
$PDF_VIEWER protokoll.$DATE$VERSION.pdf
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment