Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 197 lines (157 sloc) 6.633 kB
671055b @seebi update zend version
seebi authored
1 ZENDVERSION=1.11.5
2
4a308b3 @seebi Makefile for repowide pull/update
seebi authored
3 default:
d7d528e @seebi restructure makefile targets
seebi authored
4 @echo "Typical targets your could want to reach:"
5 @echo ""
6 @echo "--> 'make deploy' : install OntoWiki <-- in doubt, use this"
7 @echo " (use this for server installations)"
8 @echo " 'make install': install OntoWiki for developer"
9 @echo " (you will need github access and ssh for this)"
10 @echo " 'make help' : show more (developer related) make targets"
11 @echo " (this includes all code sniffing targets)"
12
13 help:
4a308b3 @seebi Makefile for repowide pull/update
seebi authored
14 @echo "please use:"
d7d528e @seebi restructure makefile targets
seebi authored
15 @echo " 'make deploy' (-> runs everything which is needed for a deployment)"
93a21d4 @seebi changes for git hosting
seebi authored
16 @echo " 'make install' (-> make directories, zend and libraries)"
17 @echo " 'make directories' (create cache/log dir and chmod environment)"
0ffa431 @seebi +make zend target
seebi authored
18 @echo " 'make zend' (download and install Zend under libraries)"
93a21d4 @seebi changes for git hosting
seebi authored
19 @echo " 'make libraries' ('git clone' all subrepos - in case submodules do not work)"
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
20 @echo " 'make erfurt' (clone under libraries)"
21 @echo " 'make rdfauthor' (clone under libraries)"
93a21d4 @seebi changes for git hosting
seebi authored
22 @echo " 'make pull' ('git pull' for all repos)"
23 @echo " 'make status' ('git status' for all repos)"
24 @echo " 'make branch-check' ('git rev-parse' for all repos)"
5cfed1e @seebi add: clean target
seebi authored
25 @echo " 'make clean' (deletes all log and cache files)"
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
26 @echo " 'make cs-install' (install CodeSniffer)"
27 @echo " 'make cs-uninstall' (uninstall CodeSniffer)"
363770c @larseidam - chg: now it's possible to install CodeSniffer for a submodule
larseidam authored
28 @echo " 'make cs-install-submodule MPATH=<path>' (install CodeSniffer on a submodule,"
29 @echo " <path> must by the relativ path to the submodule)"
30 @echo " 'make cs-uninstall-submodule MPATH=<path>' (uninstall CodeSniffer on a submodule,"
31 @echo " <path> must by the relativ path to the submodule)"
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
32 @echo " 'make cs-enable' (enable CodeSniffer to check code before every commit)"
33 @echo " 'make cs-disable' (disable CodeSniffer code checking)"
36b0ad9 @larseidam - add: CodeSniffer commands to get an emacs output for a better integ…
larseidam authored
34 @echo " 'make cs-check-commit' (run pre-commit code checking manually)"
35 @echo " 'make cs-check-commit-emacs' (same as cs-check-commit with emacs output)"
36 @echo " 'make cs-check-commit-intensive' (run pre-commit code checking"
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
37 @echo " manually with stricter coding standard)"
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
38 @echo " 'make cs-check (run complete code checking)"
39 @echo " 'make cs-check-intensive' (run complete code checking with"
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
40 @echo " stricter coding standard)"
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
41 @echo " 'make cs-check-full' (run complete code checking with detailed output)"
42 @echo " 'make cs-check-emacs' (run complete code checking with with emacs output)"
43 @echo " 'make cs-check-blame' (run complete code checking with blame list output)"
44 @echo " 'make cs-check' (run complete code checking)"
45 @echo " 'possible Parameter:"
46 @echo " 'FPATH=<path>' (run code checking on specific relative path)"
47 @echo " 'SNIFFS=<sniff 1>,<sniff 2>' (run code checking on specific sniffs)"
48 @echo " 'OPTIONS=<option>' (run code checking with specific CodeSniffer options)"
49
4a308b3 @seebi Makefile for repowide pull/update
seebi authored
50
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
51
52 # top level target
53
d7d528e @seebi restructure makefile targets
seebi authored
54 deploy: directories clean zend
55 rm -rf libraries/RDFauthor
56 @echo 'Cloning RDFauthor into libraries/RDFauthor ...'
57 git clone git://github.com/AKSW/RDFauthor.git libraries/RDFauthor
58 rm -rf libraries/Erfurt
59 @echo 'Cloning Erfurt into libraries/Erfurt ...'
60 git clone git://github.com/AKSW/Erfurt.git libraries/Erfurt
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
61
d7d528e @seebi restructure makefile targets
seebi authored
62
63 install: directories libraries
16d9d42 @white-gecko changing Makefile to give users without github account a chance ;-). …
white-gecko authored
64
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
65 clean:
66 rm -rf cache/* logs/*
67
68 directories: clean
69 mkdir -p logs cache
70 chmod 777 logs cache extensions
71
d7d528e @seebi restructure makefile targets
seebi authored
72 libraries: zend submodules
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
73
4936e14 @seebi add submodules target, improve status target
seebi authored
74 submodules:
75 git submodule init
76 git submodule update
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
77
78 # developer targets
79
4a308b3 @seebi Makefile for repowide pull/update
seebi authored
80 pull:
93a21d4 @seebi changes for git hosting
seebi authored
81 git pull
28aae53 @seebi modifiy pull, status and branch-check to use submodule command
seebi authored
82 git submodule foreach git pull
4a308b3 @seebi Makefile for repowide pull/update
seebi authored
83
8d37f78 @seebi cleanup and fetch target
seebi authored
84 fetch:
85 git fetch
86 git submodule foreach git fetch
a98bf04 @seebi + make status
seebi authored
87
ead8542 @seebi add a info target which produces a nice overview
seebi authored
88 info:
89 @git --no-pager log -1 --oneline --decorate
90 @git submodule foreach git --no-pager log -1 --oneline --decorate
0b331ac @seebi + force-update target
seebi authored
91
a98bf04 @seebi + make status
seebi authored
92 status:
4936e14 @seebi add submodules target, improve status target
seebi authored
93 git status -sb
28aae53 @seebi modifiy pull, status and branch-check to use submodule command
seebi authored
94 git submodule foreach git status -sb
0ffa431 @seebi +make zend target
seebi authored
95
c5e529c @seebi + make branch-check
seebi authored
96 branch-check:
28aae53 @seebi modifiy pull, status and branch-check to use submodule command
seebi authored
97 @git rev-parse --abbrev-ref HEAD
98 @git submodule foreach git rev-parse --abbrev-ref HEAD
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
99
100 # libraries
c5e529c @seebi + make branch-check
seebi authored
101
0ffa431 @seebi +make zend target
seebi authored
102 zend:
103 rm -rf libraries/Zend
999d7d4 @seebi add option for nice progress bar to curl call
seebi authored
104 curl -# -O http://framework.zend.com/releases/ZendFramework-${ZENDVERSION}/ZendFramework-${ZENDVERSION}-minimal.tar.gz || wget http://framework.zend.com/releases/ZendFramework-${ZENDVERSION}/ZendFramework-${ZENDVERSION}-minimal.tar.gz
671055b @seebi update zend version
seebi authored
105 tar xzf ZendFramework-${ZENDVERSION}-minimal.tar.gz
106 mv ZendFramework-${ZENDVERSION}-minimal/library/Zend libraries
107 rm -rf ZendFramework-${ZENDVERSION}-minimal.tar.gz ZendFramework-${ZENDVERSION}-minimal
96ce546 @seebi + make libraries (for mercurials which do not allow subrepo pull)
seebi authored
108
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
109 rdfauthor:
96ce546 @seebi + make libraries (for mercurials which do not allow subrepo pull)
seebi authored
110 rm -rf libraries/RDFauthor
111 @echo 'Cloning RDFauthor into libraries/RDFauthor ...'
d595384 @seebi remove rdfauthor subrepo and modify makefile targets to use new githu…
seebi authored
112 git clone git@github.com:AKSW/RDFauthor.git libraries/RDFauthor
96ce546 @seebi + make libraries (for mercurials which do not allow subrepo pull)
seebi authored
113
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
114 erfurt:
115 rm -rf libraries/Erfurt
116 @echo 'Cloning Erfurt into libraries/Erfurt ...'
d595384 @seebi remove rdfauthor subrepo and modify makefile targets to use new githu…
seebi authored
117 git clone git@github.com:AKSW/Erfurt.git libraries/Erfurt
d617945 @seebi add: install target
seebi authored
118
6332e38 @seebi changes for erfurt from git@github.com:AKSW/Erfurt.git
seebi authored
119 # packaging
d617945 @seebi add: install target
seebi authored
120
473d8cf @seebi + debianize target
seebi authored
121 debianize:
122 rm extensions/markdown/parser/License.text
123 rm extensions/markdown/parser/PHP_Markdown_Readme.txt
124 rm extensions/markdown/parser/markdown.php
125 rm extensions/queries/resources/codemirror/LICENSE
126 rm extensions/themes/silverblue/scripts/libraries/jquery.js
127 rm libraries/RDFauthor/libraries/jquery.js
128 rm Makefile
129 @echo "now do: cp -R application/scripts/debian debian"
130
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
131
132 # coding standard
133
134 # #### config ####
363770c @larseidam - chg: now it's possible to install CodeSniffer for a submodule
larseidam authored
135 # cs-script path
136 CSSPATH = application/tests/CodeSniffer/
137 # ignore pattern
fd77896 @larseidam disable the verbose mode in cs-check-full and ignore the pclzip.lib.p…
larseidam authored
138 IGNOREPATTERN = */libraries/*,pclzip.lib
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
139
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
140 # Parameter check
141 ifndef FPATH
142 FPATH = "*"
143 endif
144 ifdef SNIFFS
145 SNIFFSTR = "--sniffs="$(SNIFFS)
146 else
147 SNIFFSTR =
148 endif
149
150 REQUESTSTR = --ignore=$(IGNOREPATTERN) $(OPTIONS) $(SNIFFSTR) $(FPATH)
151
363770c @larseidam - chg: now it's possible to install CodeSniffer for a submodule
larseidam authored
152 cs-default:
153 chmod ugo+x "$(CSSPATH)cs-scripts.sh"
154
155 cs-install: cs-default
156 $(CSSPATH)cs-scripts.sh -i
157
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
158 cs-install-submodule: cs-submodule-check cs-default
363770c @larseidam - chg: now it's possible to install CodeSniffer for a submodule
larseidam authored
159 $(CSSPATH)cs-scripts.sh -f $(CSSPATH) -m $(MPATH)
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
160
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
161 cs-uninstall-submodule: cs-submodule-check cs-default
363770c @larseidam - chg: now it's possible to install CodeSniffer for a submodule
larseidam authored
162 $(CSSPATH)cs-scripts.sh -n $(MPATH)
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
163
363770c @larseidam - chg: now it's possible to install CodeSniffer for a submodule
larseidam authored
164 cs-uninstall: cs-default
165 $(CSSPATH)cs-scripts.sh -u
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
166
363770c @larseidam - chg: now it's possible to install CodeSniffer for a submodule
larseidam authored
167 cs-enable: cs-default
168 $(CSSPATH)cs-scripts.sh -f $(CSSPATH) -e
169
170 cs-disable: cs-default
171 $(CSSPATH)cs-scripts.sh -d
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
172
173 cs-check-commit:
363770c @larseidam - chg: now it's possible to install CodeSniffer for a submodule
larseidam authored
174 $(CSSPATH)cs-scripts.sh -p ""
36b0ad9 @larseidam - add: CodeSniffer commands to get an emacs output for a better integ…
larseidam authored
175 cs-check-commit-emacs:
363770c @larseidam - chg: now it's possible to install CodeSniffer for a submodule
larseidam authored
176 $(CSSPATH)cs-scripts.sh -p "-remacs"
c5af0a9 @larseidam - add: PHP CodeSniffer support
larseidam authored
177 cs-check-commit-intensive:
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
178 $(CSSPATH)cs-scripts.sh -p "-s"
179
180 cs-check:
714ce22 @larseidam CodeSniffer Update
larseidam authored
181 $(CSSPATH)cs-scripts.sh -c "-s --report=summary $(REQUESTSTR)"
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
182 cs-check-intensive:
714ce22 @larseidam CodeSniffer Update
larseidam authored
183 $(CSSPATH)cs-scripts.sh -s -c "-s --report=summary $(REQUESTSTR)"
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
184 cs-check-full:
fd77896 @larseidam disable the verbose mode in cs-check-full and ignore the pclzip.lib.p…
larseidam authored
185 $(CSSPATH)cs-scripts.sh -c "-s --report=full $(REQUESTSTR)"
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
186 cs-check-emacs:
187 $(CSSPATH)cs-scripts.sh -c "--report=emacs $(REQUESTSTR)"
36b0ad9 @larseidam - add: CodeSniffer commands to get an emacs output for a better integ…
larseidam authored
188 cs-check-blame:
a199059 @larseidam - add: sniff for forbidden functions like var_dumb
larseidam authored
189 $(CSSPATH)cs-scripts.sh -s -c "--report=gitblame $(REQUESTSTR)"
190
191 cs-submodule-check:
192 ifndef MPATH
193 @echo "You must Set a path to the submodule."
194 @echo "Example: MPATH=path/to/the/submodule/"
195 @exit 1
196 endif
Something went wrong with that request. Please try again.