summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Liu <joshua.liu@sourceobby.com>2025-09-13 14:18:19 -0400
committerJoshua Liu <joshua.liu@sourceobby.com>2025-09-13 14:18:19 -0400
commitac76b9ec294e2190e98debd4703f8ba62c5bba28 (patch)
treebb0cda2aa608da83259328c091014c5e63d2f749
parent7414c4711c27864f28f8f9553c9d2eb7db07471b (diff)
feat: implemented feature to properly point to the correct location of texassets
-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
+