This repository was archived by the owner on Jul 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
69 lines (54 loc) · 1.4 KB
/
Copy pathmakefile
File metadata and controls
69 lines (54 loc) · 1.4 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Makefile for dissertation
# Requirements:
# xelatex
# - biblatex-sbl
# make
# Run `make` to build
default: biber build-tex-full
build-tex-full:
@ echo 'Starting Latexmk...'
@ cd latex && make
build-tex:
@ echo 'Starting xelatex...'
@ cd latex && make xelatex
clean:
@ cd latex && make clean
biber:
@ echo 'Processing .bib files...'
@ cd bib && make
push: git-push gs-push-check gs-push
pull: git-pull gs-pull-check gs-pull
git-push:
@ echo 'Pushing to GitHub...' && \
git push github --all && \
echo 'Done.'
git-pull:
@ echo 'Pulling from GitHub...' && \
git pull github && \
echo 'Done.'
gs-push-check:
@ echo 'Checking with Google Cloud Storage...' && \
gsutil rsync \
-nrdx '\..*|.*/\.[^/]*$|.*/\..*/.*$|_.*' \
bib/files gs://jlw-dissertation/ && \
read -p "Press enter to continue..."
gs-push:
@ echo 'Pushing files to Google Cloud Storage...' && \
gsutil -m rsync \
-rdx '\..*|.*/\.[^/]*$|.*/\..*/.*$|_.*' \
bib/files gs://jlw-dissertation/ && \
echo 'Done.'
gs-pull-check:
@ echo 'Retrieving files from Google Cloud Storage...' && \
gsutil rsync \
-nrdx '\..*|.*/\.[^/]*$|.*/\..*/.*$|_.*' \
gs://jlw-dissertation/ bib/files && \
read -p "Press enter to continue..."
gs-pull:
@ echo 'Retrieving files from Google Cloud Storage...' && \
gsutil -m rsync \
-rdx '\..*|.*/\.[^/]*$|.*/\..*/.*$|_.*' \
gs://jlw-dissertation/ bib/files && \
echo 'Done.'
gs-login:
@ gcloud auth login