1 | DESTDIR= |
---|
2 | |
---|
3 | BINDIR=/usr/bin |
---|
4 | MANDIR=/usr/share/man/man1 |
---|
5 | SHAREDIR=/usr/share/tssh |
---|
6 | COMPDIR=/etc/bash_completion.d |
---|
7 | |
---|
8 | .PHONY: all ignore install update sync upload stat help pkg |
---|
9 | |
---|
10 | all: |
---|
11 | pod2man tssh | gzip > tssh.1.gz |
---|
12 | pod2html tssh > tssh.html |
---|
13 | |
---|
14 | install: update |
---|
15 | |
---|
16 | update: |
---|
17 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR) |
---|
18 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(MANDIR) |
---|
19 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(COMPDIR) |
---|
20 | |
---|
21 | install -m 0755 -o root -g root tssh $(DESTDIR)/$(BINDIR) |
---|
22 | |
---|
23 | install -m 0644 -o root -g root tssh.1.gz $(DESTDIR)/$(MANDIR) |
---|
24 | |
---|
25 | install -m 0644 -o root -g root config.sample.yml $(DESTDIR)/$(SHAREDIR) |
---|
26 | |
---|
27 | install -m 0644 -o root -g root tssh.bash_completion $(DESTDIR)/$(COMPDIR)/tssh |
---|
28 | |
---|
29 | sync: |
---|
30 | svn update |
---|
31 | |
---|
32 | upload: |
---|
33 | cadaver --rcfile=cadaverrc |
---|
34 | |
---|
35 | pkg: all |
---|
36 | ./make-package-debian |
---|
37 | |
---|
38 | stat: |
---|
39 | svn log|egrep '^r[[:digit:]]'|egrep -v '^r1[[:space:]]'|awk '{print $$3}'|sort|uniq -c |gnuplot -p -e 'set style fill solid 1.00 border 0; set style histogram; set style data histogram; set xtics rotate by 0; set style line 7 linetype 0 linecolor rgb "#222222"; set grid ytics linestyle 7; set xlabel "User contributor" font "bold"; set ylabel "Number of commit" font "bold"; plot "/dev/stdin" using 1:xticlabels(2) title "commit" linecolor rgb "#666666"' |
---|
40 | (echo '0 2015'; svn log|egrep '^r[[:digit:]]'|awk '{print $$5}'|cut -f 1 -d '-'|sort|uniq -c)|sort -k 2|gnuplot -p -e 'set style fill solid 1.00 border 0; set style histogram; set style data histogram; set xtics rotate by 0; set style line 7 linetype 0 linecolor rgb "#222222"; set grid ytics linestyle 7; set xlabel "Year" font "bold"; set ylabel "Number of commit" font "bold"; plot "/dev/stdin" using 1:xticlabels(2) title "commit" linecolor rgb "#666666"' |
---|
41 | |
---|
42 | help: |
---|
43 | @echo "Possibles targets:" |
---|
44 | @echo " * all : make manual" |
---|
45 | @echo " * install : complete install" |
---|
46 | @echo " * update : update install (do not update cron file)" |
---|
47 | @echo " * sync : sync with official repository" |
---|
48 | @echo " * upload : upload on public dav forge space" |
---|
49 | @echo " * stat : svn stat with gnuplot graph" |
---|
50 | @echo " * pkg : build Debian package" |
---|
51 | @echo "ignore - svn rules to ignore some files" |
---|
52 | |
---|
53 | ignore: svnignore.txt |
---|
54 | svn propset svn:ignore -F svnignore.txt . |
---|
55 | svn propset svn:keywords "Id" tssh |
---|