|
|
|
@ -89,12 +89,13 @@ if [ $# -eq 1 ]; then
|
|
|
|
|
#### Special treatment for thesis
|
|
|
|
|
if [[ ${PWD} == "/media/bay/taha/chepec/thesis" && $jobname == "thesis" ]]; then
|
|
|
|
|
# Fetch external assets by reading any assets.external files in assets/ tree
|
|
|
|
|
# NOTE: be careful NOT to leave empty lines in your assets.external files
|
|
|
|
|
echo "<thesis> -------------------------------"
|
|
|
|
|
echo "<thesis> Getting external assets"
|
|
|
|
|
echo "<thesis> -------------------------------"
|
|
|
|
|
# summary of operations in this if-clause:
|
|
|
|
|
# trawl the assets/ subdirectories looking for a file "external.assets", if found,
|
|
|
|
|
# read its contents line-by-line (each line is a path) and copy that file to the current assets/ subdir
|
|
|
|
|
# read its contents line-by-line (each line is a path) and copy that file at that path to the current assets/ subdir
|
|
|
|
|
# note that we only look for assets.external inside the subdirectories, and not in assets/ itself
|
|
|
|
|
assetsubdirectories="$(find /media/bay/taha/chepec/thesis/assets/ -maxdepth 1 -mindepth 1 -type d)"
|
|
|
|
|
# loop through $assetdirs, and look for the file external.assets in each path
|
|
|
|
|