summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Liu <joshua.liu@sourceobby.com>2025-09-11 23:08:11 -0400
committerJoshua Liu <joshua.liu@sourceobby.com>2025-09-11 23:08:11 -0400
commit7414c4711c27864f28f8f9553c9d2eb7db07471b (patch)
tree7b32539963756df2fbe7dd3baf9c3dfb5df6c418
parent29f784b6cb95d270f90ef93b8755d4f158e7a3d2 (diff)
feat: created a deploy script to make a path if necessary, then to copy the assets over so that the template file can use them. However, need to adjust script so that it can modify the tex files themselves to point to the correct directorymaster
-rw-r--r--deploy.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100644
index 0000000..2b40795
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+cur=`pwd`
+
+cd ~/
+
+homedir=`pwd`
+
+path="${homedir}/Documents/texassets"
+
+echo "Deploying assets folder. This will let you compile the latex templates"
+
+if [[ -f $path ]]
+then
+ echo "Path already exists, exiting"
+ exit
+fi
+
+if [[ -d ${path} ]]
+then
+ echo "Path already exists but is file, copying files"
+else
+ echo "Path does not exist, making new folder and copying files"
+ mkdir ${path}
+fi
+cd $cur
+cp "${cur}/assets/"*.png ${path}
+
+echo "done"
+