.PHONY: make-version build
-# The 'darcsver' setup.py command comes in the 'darcsver' package:
-# http://pypi.python.org/pypi/darcsver It is necessary only if you want to
-# automatically produce a new _version.py file from the current darcs history.
+# This is necessary only if you want to automatically produce a new
+# _version.py file from the current git/darcs history.
make-version:
- $(PYTHON) ./setup.py darcsver --count-all-patches
+ $(PYTHON) ./setup.py update_version
.built:
$(MAKE) build
@echo
pyflakes:
- $(PYTHON) -OOu `which pyflakes` $(SOURCES) |sort |uniq
+ @$(PYTHON) -OOu `which pyflakes` $(SOURCES) |sort |uniq
@echo
check-umids:
count-lines:
@echo -n "files: "
- @find src -name '*.py' |grep -v /build/ |wc --lines
+ @find src -name '*.py' |grep -v /build/ |wc -l
@echo -n "lines: "
- @cat `find src -name '*.py' |grep -v /build/` |wc --lines
+ @cat `find src -name '*.py' |grep -v /build/` |wc -l
@echo -n "TODO: "
- @grep TODO `find src -name '*.py' |grep -v /build/` | wc --lines
+ @grep TODO `find src -name '*.py' |grep -v /build/` | wc -l
+ @echo -n "XXX: "
+ @grep XXX `find src -name '*.py' |grep -v /build/` | wc -l
check-memory: .built
rm -rf _test_memory
bench-dirnode: .built
$(TAHOE) @src/allmydata/test/bench_dirnode.py
+# the provisioning tool runs as a stand-alone webapp server
+run-provisioning-tool: .built
+ $(TAHOE) @misc/operations_helpers/provisioning/run.py
+
# 'make repl' is a simple-to-type command to get a Python interpreter loop
# from which you can type 'import allmydata'
repl:
$(MAKE)
$(PYTHON) misc/build_helpers/test-darcs-boringfile.py
+test-git-ignore:
+ $(MAKE)
+ $(PYTHON) misc/build_helpers/test-git-ignore.py
+
test-clean:
find . |grep -vEe "_darcs|allfiles.tmp|src/allmydata/_(version|appname).py" |sort >allfiles.tmp.old
$(MAKE)