diff options
-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 + |