forked from joblib/pyreport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (45 loc) · 1.45 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
48
49
50
51
52
53
54
55
56
57
filelist=help.rst download.rst index.txt release.txt help.rst latest.rst
small: ${filelist}
cd pyreport/examples && make small
all: ${filelist}
cd pyreport/examples && make
install: all
cp ${filelist} /home/varoquau/www/src/computers/pyreport
cd pyreport/examples && make install
clean:
rm -rf pyreport/DEBUG
cd pyreport/examples && make clean
release:
make clean
test "$$(./pyreport/pyreport --version)" != "$$(/home/varoquau/www/src/computers/pyreport/pyreport --version)" || print "!!!! WARNING !!!! Version number has not been changed"
cp pyreport/pyreport /home/varoquau/www/src/computers/pyreport
make commit
make push
make install
make export
make web
commit:
sed 's/DEBUG = True/DEBUG = False/' -i pyreport/pyreport.py
bzr commit
sed 's/DEBUG = False/DEBUG = True/' -i pyreport/pyreport.py
push:
bzr push sftp://1and1/pyreport
web:
cp index.txt release.txt /home/varoquau/www/src/computers/pyreport
cd /home/varoquau/www && make && make install
help.rst: pyreport
#echo "::" > help.rst
#echo "" >> help.rst
rm -f help.rst
./pyreport/pyreport -h >> help.rst
echo "" >> help.rst
sed 's/^/ /' -i help.rst
download.rst: pyreport
rm -f download.rst
echo '* `'$$(./pyreport/pyreport --version) '<./pyreport>`_' > download.rst
latest.rst: pyreport
rm -f latest.rst
echo '`download '$$(./pyreport/pyreport --version) '<./release.html>`_' > latest.rst
export:
scp ${filelist} 1and1:computers/pyreport
cd pyreport/examples && make export