-
Notifications
You must be signed in to change notification settings - Fork 8
/
makefile
49 lines (37 loc) · 1.14 KB
/
makefile
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
DEST=build/
USER-DOCS=user-docs/
#SCRIPTS=scripts/
#META=meta/
all: final-publish
publish: init
emacs --script user-docs/elisp/publish.el
rm -rf ${DEST}*~
mv ${DEST}*.html ${DEST}${USER-DOCS}
mv ${DEST}org-templates ${DEST}${USER-DOCS}
mv ${DEST}style ${DEST}${USER-DOCS}
mv ${DEST}img ${DEST}${USER-DOCS}
rsync -raz --progress ./scripts ${DEST}
rsync -raz --progress ./meta ${DEST}
final-publish: init
sed -i 's/level-0.org/level-1.org/' ${USER-DOCS}/setup-centos.org
sed -i 's/level-0.org/level-2.org/' ${USER-DOCS}/how-to-deploy-a-lab.org
emacs --script user-docs/elisp/publish.el
rm -rf ${DEST}*~
mv ${DEST}*.html ${DEST}${USER-DOCS}
mv ${DEST}org-templates ${DEST}${USER-DOCS}
mv ${DEST}style ${DEST}${USER-DOCS}
mv ${DEST}img ${DEST}${USER-DOCS}
rsync -raz --progress ./scripts ${DEST}
rsync -raz --progress ./meta ${DEST}
init:
rm -rf ${DEST}
mkdir -p ${DEST}
mkdir -p ${DEST}${USER-DOCS}
server:
python -m SimpleHTTPServer 6001
export:
rsync -auvz ${DEST}presentation/* letshelp@devel.virtual-labs.ac.in:/var/www/2012-10-08-integration-sprint/
clean:
rm -rf ${DEST}
archive:
(cd ${DEST}; zip -r presentation.zip presentation)