diff --git a/setupParentDir.ps1 b/setupParentDir.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..90aa75d52434ad1f619b2525d7a8267f02e9cf9c --- /dev/null +++ b/setupParentDir.ps1 @@ -0,0 +1,22 @@ +# This script will copy necessary content and link it against this template repository + +# Copy thesis +cp .\Example.tex ../Thesis.tex +$pthPrefix = "{\pthPrefix}{" + (Split-Path -Path $pwd -Leaf) + "/}" + +echo $pthPrefix +(Get-Content ../Thesis.tex -Raw) -Replace '{\\pthPrefix}{}', $pthPrefix | Set-Content ../Thesis.tex + +# Make folder structure +mkdir -F ../graphics +mkdir -F ../chapters +mkdir -F ../bib + +# Copy glossary +cp ./bib/glossaries.tex ../bib/glossaries.tex + +# Copy demo references +cp ./bib/IFT.bib ../bib/IFT.bib + +# Copy chapters +cp ./chapters/help.tex ../chapters/help.tex \ No newline at end of file diff --git a/setupParentDir.sh b/setupParentDir.sh new file mode 100644 index 0000000000000000000000000000000000000000..89596f6fc8bae44ff5310dd60e6a9d041316ed7e --- /dev/null +++ b/setupParentDir.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# This script will copy necessary content and link it against this template repository + +#FIXME: This is a untested version - please debug and commit corrected version + +# Copy thesis +cp .\Example.tex ../Thesis.tex +$pthPrefix = basename "`pwd`" + '/' + +echo $pthPrefix +sed -i 's/{\\pthPrefix}{}/$pthPrefix/g' ../Thesis.tex + +# Make folder structure +mkdir -F ../graphics +mkdir -F ../chapters +mkdir -F ../bib + +# Copy glossary +cp ./bib/glossaries.tex ../bib/glossaries.tex + +# Copy demo references +cp ./bib/IFT.bib ../bib/IFT.bib + +# Copy chapters +cp ./chapters/help.tex ../chapters/help.tex \ No newline at end of file