92
94
@bash ./utilities/lint.sh -v
95
${PYTHON} -t ./utilities/xxxreport.py -f csv -o xxx-report.csv ./
98
${PY} ./utilities/xxxreport.py -f csv -o xxx-report.csv ./
98
${PYTHON} utilities/check-configs.py
101
${PY} utilities/check-configs.py
101
env PYTHONPATH=$(PYTHONPATH) ${PYTHON} test.py test_pages
104
env PYTHONPATH=$(PYTHONPATH) ${PY} test.py test_pages
105
build: $(BZR_VERSION_INFO) compile apidoc
108
build: $(BZR_VERSION_INFO) bin/py compile apidoc
108
112
${SHHH} $(MAKE) -C sourcecode build PYTHON=${PYTHON} \
109
113
PYTHON_VERSION=${PYTHON_VERSION} LPCONFIG=${LPCONFIG}
110
114
${SHHH} LPCONFIG=${LPCONFIG} PYTHONPATH=$(PYTHONPATH) \
111
$(PYTHON) -t buildmailman.py
115
$(PY) buildmailman.py
112
116
${SHHH} sourcecode/lazr-js/tools/build.py \
113
117
-n launchpad -s lib/canonical/launchpad/javascript \
114
118
-b lib/canonical/launchpad/icing/build $(EXTRA_JS_FILES)
117
121
echo "#!/bin/sh" > bin/runzope;
118
echo "exec $(PYTHON) $(STARTSCRIPT) -C $(CONFFILE)" >> bin/runzope;
122
echo "exec $(PY) $(STARTSCRIPT) -C $(CONFFILE)" >> bin/runzope;
119
123
chmod +x bin/runzope
120
124
echo "#!/bin/sh" > bin/zopectl;
121
echo "$(PYTHON) $(PWD)/src/zdaemon/zdctl.py \
125
echo "$(PY) $(PWD)/src/zdaemon/zdctl.py \
123
127
-C zdaemon.conf -d \$$*" >> bin/zopectl
124
128
chmod +x bin/zopectl
126
130
test_build: build
127
$(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS)
131
$(PY) test.py $(TESTFLAGS) $(TESTOPTS)
129
133
test_inplace: inplace
130
$(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS)
134
$(PY) test.py $(TESTFLAGS) $(TESTOPTS)
132
136
ftest_build: build
133
137
env PYTHONPATH=$(PYTHONPATH) \
134
$(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS)
138
$(PY) test.py -f $(TESTFLAGS) $(TESTOPTS)
136
140
ftest_inplace: inplace
137
141
env PYTHONPATH=$(PYTHONPATH) \
138
$(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS)
142
$(PY) test.py -f $(TESTFLAGS) $(TESTOPTS)
140
145
run: inplace stop
141
146
$(RM) thread*.request
142
$(APPSERVER_ENV) $(PYTHON) -t $(STARTSCRIPT) \
143
-r librarian,google-webservice -C $(CONFFILE)
147
bin/run -r librarian,google-webservice -C $(CONFFILE)
145
150
start-gdb: inplace stop support_files
146
151
$(RM) thread*.request
147
$(APPSERVER_ENV) nohup gdb -x run.gdb --args $(PYTHON) -t $(STARTSCRIPT) \
152
nohup gdb -x run.gdb --args bin/run \
148
153
-r librarian,google-webservice -C $(CONFFILE) \
149
154
> ${LPCONFIG}-nohup.out 2>&1 &
151
157
run_all: inplace stop hosted_branches
152
158
$(RM) thread*.request
153
$(APPSERVER_ENV) $(PYTHON) -t $(STARTSCRIPT) \
154
-r librarian,buildsequencer,sftp,mailman,codebrowse,google-webservice \
159
bin/run -r librarian,buildsequencer,sftp,mailman,codebrowse,google-webservice \
157
162
run_codebrowse: build
158
BZR_PLUGIN_PATH=bzrplugins PYTHONPATH=lib $(PYTHON) sourcecode/launchpad-loggerhead/start-loggerhead.py -f
163
BZR_PLUGIN_PATH=bzrplugins $(PY) sourcecode/launchpad-loggerhead/start-loggerhead.py -f
160
165
start_codebrowse: build
161
BZR_PLUGIN_PATH=$(shell pwd)/bzrplugins PYTHONPATH=lib $(PYTHON) sourcecode/launchpad-loggerhead/start-loggerhead.py
166
BZR_PLUGIN_PATH=$(shell pwd)/bzrplugins $(PY) sourcecode/launchpad-loggerhead/start-loggerhead.py
164
PYTHONPATH=lib $(PYTHON) sourcecode/launchpad-loggerhead/stop-loggerhead.py
169
$(PY) sourcecode/launchpad-loggerhead/stop-loggerhead.py
166
171
pull_branches: support_files
167
172
# Mirror the hosted branches in the development upload area to the
169
$(PYTHON) cronscripts/supermirror-pull.py upload
174
$(PY) cronscripts/supermirror-pull.py upload
172
177
# Scan branches from the filesystem into the database.
173
$(PYTHON) cronscripts/branch-scanner.py
178
$(PY) cronscripts/branch-scanner.py
175
180
sync_branches: pull_branches scan_branches
193
198
# don't want to run 'make stop' because it takes unnecessary time
194
199
# even if the service is already stopped, and bzr_version_info is not
195
200
# needed either because it's run as part of 'make build'.
196
202
initscript-start:
197
$(APPSERVER_ENV) nohup $(PYTHON) -t $(STARTSCRIPT) -C $(CONFFILE) \
198
> ${LPCONFIG}-nohup.out 2>&1 &
203
nohup bin/run -C $(CONFFILE) > ${LPCONFIG}-nohup.out 2>&1 &
200
205
# Kill launchpad last - other services will probably shutdown with it,
201
206
# so killing them after is a race condition.
203
@ $(APPSERVER_ENV) ${PYTHON} \
204
utilities/killservice.py librarian buildsequencer launchpad mailman
208
bin/killservice librarian buildsequencer launchpad mailman
206
210
shutdown: scheduleoutage stop
207
211
$(RM) +maintenancetime.txt
251
255
mkdir -p $(CODEHOSTING_ROOT)/config
252
256
touch $(CODEHOSTING_ROOT)/config/launchpad-lookup.txt
258
# XXX buildout script
255
260
mkdir -p doc/zcml/namespaces.zope.org
256
PYTHONPATH=$(shell pwd)/src:$(PYTHONPATH) $(PYTHON) \
261
PYTHONPATH=$(shell pwd)/src:$(PYTHONPATH) $(PY) \
257
262
./sourcecode/zope/src/zope/configuration/stxdocs.py \
258
263
-f sourcecode/zope/src/zope/app/zcmlfiles/meta.zcml \
259
264
-o doc/zcml/namespaces.zope.org
261
266
potemplates: launchpad.pot
268
# XXX buildout script
263
269
# Generate launchpad.pot by extracting message ids from the source
265
$(PYTHON) sourcecode/zope/utilities/i18nextract.py \
271
$(PY) sourcecode/zope/utilities/i18nextract.py \
266
272
-d launchpad -p lib/canonical/launchpad \