-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 1.45 KB
/
Copy pathMakefile
File metadata and controls
49 lines (38 loc) · 1.45 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
# Building DiogenesWeb
# DigilibLT has to be downloaded manually
VERSION = 1.011
TEXTS = static/texts
PERSEUSGREEKLIT = $(TEXTS)/Perseus_Greek/
PERSEUSLATINLIT = $(TEXTS)/Perseus_Latin/
DIOGENESXML = $(HOME)/Diogenes-Resources/xml
all: perseus file-list index
version:
rm -rf static/ver/$(VERSION)
mkdir -p static/ver/$(VERSION)
cp -r source/js static/ver/$(VERSION)
cp -r source/css static/ver/$(VERSION)
cp -r source/html static/ver/$(VERSION)
echo 'const Version = "'$(VERSION)'";' > static/ver/$(VERSION)/js/version.js
cp source/templates/*.html generated/
perl -pi -e 's!/static/ver/VERSION/!/static/ver/'$(VERSION)/'!g' generated/*.html
cp source/templates/*.hbs views/
perl -pi -e 's!/static/ver/VERSION/!/static/ver/'$(VERSION)/'!g' views/*.hbs
# rclone -v copy static/ver diogenes-s3:d.iogen.es/static/ver
perseus:
cd $(PERSEUSGREEKLIT) && git stash && git pull
cd $(PERSEUSLATINLIT) && git stash && git pull
utils/fix-perseus-entities.pl
file-list:
utils/make-file-list.pl
index:
utils/parse-authtab.pl $(DIOGENESXML)/phi/authtab.xml $(DIOGENESXML)/tlg/authtab.xml
upload:
rclone -v copy static/images diogenes-s3:d.iogen.es/static/images
rclone -v copy static/ver diogenes-s3:d.iogen.es/static/ver
upload-texts:
rclone -v --include "*[^_].xml" copy static/texts diogenes-s3:d.iogen.es/static/texts
deploy:
docker build -t pjheslin/diogenesweb .
docker push pjheslin/diogenesweb
zip -r Dockerrun.zip Dockerrun.aws.json .ebextensions
eb deploy