Mercurial > web-octave
annotate Makefile @ 120:bfdbe4eb3128
* Makefile: automating deployment.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Sat, 19 Nov 2016 01:19:58 +0100 |
parents | |
children | d851f4f89fb4 |
rev | line source |
---|---|
120
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
1 USRNAME ?= $(shell bash -c 'read -p \ |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
2 "The Octave Savannah CVS repository is checked out to the parent directory. Savannah login: " usr; \ |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
3 echo $$usr') |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
4 |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
5 SAVANNAH_DIR := ../octave |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
6 |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
7 CVS_RSH=ssh |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
8 |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
9 export CVS_RSH |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
10 |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
11 all: deploy |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
12 |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
13 deploy: | $(SAVANNAH_DIR) |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
14 jekyll build |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
15 cp -a _site/. $(SAVANNAH_DIR) |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
16 cd $(SAVANNAH_DIR) && find . -type d -not -name "CVS" -exec cvs add '{}' \; |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
17 cd $(SAVANNAH_DIR) && find . -type f | grep -v CVS | xargs cvs add |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
18 cd $(SAVANNAH_DIR) && cvs commit |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
19 |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
20 $(SAVANNAH_DIR): |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
21 cd .. \ |
bfdbe4eb3128
* Makefile: automating deployment.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff
changeset
|
22 && cvs -z3 -d:ext:$(USRNAME)@cvs.savannah.gnu.org:/web/octave checkout -P octave |