aboutsummaryrefslogtreecommitdiff
path: root/input_fail.py
diff options
context:
space:
mode:
authorJoseph Richey <joerichey94@gmail.com>2018-02-11 21:06:32 -0800
committerJoseph Richey <joerichey94@gmail.com>2018-02-11 21:38:01 -0800
commita9c3c4fdfbdd9b4ab7e82f5b237d040be68886e0 (patch)
treec95bcf9ffbf02ebbe5c857117020e6aeaee15f8c /input_fail.py
parent734f50d8fcb4df4cf611e774123b835f9fc5666b (diff)
Makefile: completly rewrite
This change is a complete rewrite of fscrypt's Makefile. The new build rules can be roughly divided into secions: Build - bin/fscrypt and bin/pam_fscrypt Linting - gen (for .proto files), format, lint Test - test, test-{setup|teardown}, coverage.out Install - install, uninstall, install-{bin|pam} Tools - tools and other bin/* needed for the other rules As before, "make" builds the binary and pam_module, while "make all" builds and tests everything (except for integration tests), and "make clean" removes any generated files. Also note that this new build system: - Doesn't require input_fail.py - Properly falis on linter errors - Builds everything into the bin/ directory (customizable) - Builds all the vendored tools
Diffstat (limited to 'input_fail.py')
-rwxr-xr-xinput_fail.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/input_fail.py b/input_fail.py
deleted file mode 100755
index 7bf33c3..0000000
--- a/input_fail.py
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env python
-
-# Exit with 1 if any input is provided. Print the input to stdout, unless an
-# argument is specified. In that case, print the argument instead.
-
-import sys
-
-input_string = sys.stdin.read()
-if input_string != "":
- if len(sys.argv) >= 2:
- print(sys.argv[1])
- else:
- sys.stdout.write(input_string)
- sys.exit(1)