summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-08-23 17:51:56 +0300
committerLars Wirzenius <liw@liw.fi>2017-08-23 17:51:56 +0300
commit754869de8a67bf2d3a4318d5896e60de52037765 (patch)
treec3a605b6b11bce3023bfecefb8fcc764930d4063
parent7e2c65c53113115e2559310260a38b0e2141f87c (diff)
downloadttystatus-754869de8a67bf2d3a4318d5896e60de52037765.tar.gz
Add: script ./check to replace "make check"
Also, drop Makefile, which is now useless.
-rw-r--r--Makefile16
-rwxr-xr-xcheck8
2 files changed, 8 insertions, 16 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index dd894ff..0000000
--- a/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-all:
- $(MAKE) -C doc html
-
-check:
- python -m CoverageTestRunner --ignore-missing-from=without-tests
- rm -f .coverage
- pep8 ttystatus
- if command -v pylint && pylint --version | grep '^pylint [1-9]'; \
- then \
- PYTHONPATH=. pylint --rcfile=pylint.conf ttystatus; \
- fi
-
-clean:
- rm -f .coverage ttystatus/*.py[co]
- rm -rf build
- $(MAKE) -C doc clean
diff --git a/check b/check
new file mode 100755
index 0000000..819058f
--- /dev/null
+++ b/check
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -eu
+
+python -m CoverageTestRunner --ignore-missing-from=without-tests
+rm -f .coverage
+pep8 ttystatus
+PYTHONPATH=. pylint --rcfile=pylint.conf ttystatus