diff options
author | Joshua Liu <joshua.liu@sourceobby.com> | 2025-09-13 14:18:19 -0400 |
---|---|---|
committer | Joshua Liu <joshua.liu@sourceobby.com> | 2025-09-13 14:18:19 -0400 |
commit | ac76b9ec294e2190e98debd4703f8ba62c5bba28 (patch) | |
tree | bb0cda2aa608da83259328c091014c5e63d2f749 /deploy.sh | |
parent | 7414c4711c27864f28f8f9553c9d2eb7db07471b (diff) |
feat: implemented feature to properly point to the correct location of texassets
Diffstat (limited to 'deploy.sh')
-rw-r--r-- | deploy.sh | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 + |