summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rw-r--r--deploy.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index 2b40795..819d7e0 100644
--- a/deploy.sh
+++ b/deploy.sh
@@ -8,6 +8,8 @@ homedir=`pwd`
path="${homedir}/Documents/texassets"
+# First we will deploy the texassets directory
+
echo "Deploying assets folder. This will let you compile the latex templates"
if [[ -f $path ]]
@@ -28,3 +30,15 @@ cp "${cur}/assets/"*.png ${path}
echo "done"
+
+# Now we modify the template files so that they point to the right directory
+
+echo "Modifying the template files"
+
+templates=`ls | grep .tex`
+
+for file in 'seq $templates'
+do
+ cat test | sed -r "s/^### Insert graphicspath command here ###/\\\graphicspath {$path}/" > file
+done
+