-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_all_libs.sh
executable file
·52 lines (41 loc) · 1.17 KB
/
update_all_libs.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
git pull
MESSAGE="Updating all libraries through a manual call"
echo "#########################"
echo "# Updating Main Library #"
echo "#########################"
if [ "$#" -eq 4 ]; then
python3 ./scripts/get_mendeley_library.py "$1" "$2" "$3" "$4"
MESSAGE="Updating all libraries through a GitHub workflow"
else
python3 ./scripts/get_mendeley_library.py
fi
echo "[ok]"
echo
echo "##########################"
echo "# Updating Short Library #"
echo "##########################"
scripts/create_short_library.sh
echo "[ok]"
echo
echo "###########################"
echo "# Updating No-URL Library #"
echo "###########################"
scripts/create-no-url.sh
echo "[ok]"
echo
echo "#####################################"
echo "# Updating No-DOI (has URL) Library #"
echo "#####################################"
scripts/create-no-doi.sh
echo "[ok]"
echo
echo "#################################"
echo "# Updating No-URL short Library #"
echo "#################################"
scripts/create-no-url-short.sh
echo "[ok]"
echo
git add -f library-no-url.bib library-no-doi.bib library.bib library-no-url-short.bib library-short.bib
git commit -m "${MESSAGE}"
git push