--- /dev/null
+#!/bin/sh
+
+DESTFILE="../.git/hooks/pre-commit"
+SOURCEFILE="../git_tools/pre-commit.tex.sh"
+
+if [ -e $DESTFILE ]; then
+ if [[ "$(cat $DESTFILE)" =~ .*"$(cat $SOURCEFILE)".* ]]; then
+ echo "Info: Is already enabled."
+ else
+ echo "copy Tool into $DESTFILE..."
+ cat $SOURCEFILE >> $DESTFILE
+ fi
+else
+ echo "create new $DESTFILE..."
+ echo "create new $DESTFILE..."
+ cp $SOURCEFILE $DESTFILE
+fi
+
+
+read -n1 -r -p "Press space to continue..." key
--- /dev/null
+#!/bin/sh
+#
+# This skript will update the use_cases_web PDF if a required file was changed
+#
+# Install: copy this file to .git/hooks/pre-commit (no extensions)
+#
+# Author: Schaefer P. M.
+
+GITLOG=`git diff-index --name-only HEAD`
+PATHs="Web Application/Documentation"
+
+echo "[hook]Check if update is needed.."
+if [[ $GITLOG =~ "$PATHs".*(".tex"|".png") ]]; then
+ cd "$PATHs"
+ echo " [hook]build PDF..."
+ #build current PDF again
+ pdflatex.exe -quiet -synctex=1 -interaction=nonstopmode "use_cases_web".tex
+
+ echo " [hook]git add..."
+ #add to git
+ git add -f use_cases_web.pdf
+else
+ echo " [hook]no pdf update needed"
+fi