-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·31 lines (23 loc) · 879 Bytes
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash -e
#NAME="CondensedSummaries.pdf"
#cp "${NOTES}/DeepLearningNotes/${NAME}" "assets/pdf/${NAME}"
#NAME="CS236.pdf"
#jcp "${NOTES}/CS236_DeepGenerativeModels/${NAME}" "assets/pdf/${NAME}"
#NAME="CS330.pdf"
#cp "${NOTES}/CS330_MultiTaskAndMetaLearning/${NAME}" "assets/pdf/${NAME}"
NAME="STATS214.pdf"
cp "${NOTES}/Stanford/STATS214_MachineLearningTheory/${NAME}" "assets/pdf/${NAME}"
## declare an array variable
baseDir=${NOTES}/DeepLearningNotes
declare -a arr=("DeepLearningBook" "PapersAndTutorials" "MiscStanford" "Textbooks" "BlogsAndAppendix")
## now loop through the above array
for name in "${arr[@]}"; do
pdfName=${name}.pdf
pdfPath=${baseDir}/${pdfName}
echo "copying ${pdfPath} to assets/pdf/${pdfName}"
cp "${pdfPath}" "assets/pdf/${pdfName}"
done
git add assets/pdf
git commit -m "Updated notes."
git status
git push origin master