about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-11-11 19:57:28 +0100
committertoonn <toonn@toonn.io>2020-11-13 20:08:18 +0100
commit9ed367206da27f62b503a88d1020385dc06d00e3 (patch)
treea5265ee1deb9cab56ccde31616b9b6857c68e670
parent9c69b4aecb87fc6120cd8ce85e0f0020397199ef (diff)
downloadranger-9ed367206da27f62b503a88d1020385dc06d00e3.tar.gz
Change "sgr0" to "normal" for legibility
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 1653ceb9..0cb35bd4 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ FILTER ?= .
 CWD = $(shell pwd)
 
 bold := $(shell tput bold)
-sgr0 := $(shell tput sgr0)
+normal := $(shell tput sgr0)
 
 default: test compile
 	@echo 'Run `make options` for a list of all options'
@@ -94,17 +94,17 @@ TEST_PATHS_MAIN = \
 TEST_PATH_CONFIG = ./ranger/config
 
 test_pylint:
-	@echo "$(bold)Running pylint...$(sgr0)"
+	@echo "$(bold)Running pylint...$(normal)"
 	pylint $(TEST_PATHS_MAIN)
 	pylint --rcfile=$(TEST_PATH_CONFIG)/.pylintrc $(TEST_PATH_CONFIG)
 
 test_flake8:
-	@echo "$(bold)Running flake8...$(sgr0)"
+	@echo "$(bold)Running flake8...$(normal)"
 	flake8 $(TEST_PATHS_MAIN) $(TEST_PATH_CONFIG)
 	@echo
 
 test_doctest:
-	@echo "$(bold)Running doctests...$(sgr0)"
+	@echo "$(bold)Running doctests...$(normal)"
 	@set -e; \
 	for FILE in $(shell grep -IHm 1 doctest -r ranger | grep $(FILTER) | cut -d: -f1); do \
 		echo "Testing $$FILE..."; \
@@ -113,26 +113,26 @@ test_doctest:
 	@echo
 
 test_pytest:
-	@echo "$(bold)Running py.test tests...$(sgr0)"
+	@echo "$(bold)Running py.test tests...$(normal)"
 	py.test tests
 	@echo
 
 test_py: test_pylint test_flake8 test_doctest test_pytest test_other
-	@echo "$(bold)Finished python and documentation tests!$(sgr0)"
+	@echo "$(bold)Finished python and documentation tests!$(normal)"
 	@echo
 
 test_shellcheck:
-	@echo "$(bold)Running shellcheck...$(sgr0)"
+	@echo "$(bold)Running shellcheck...$(normal)"
 	sed '2,$$s/^\(\s*\)#/\1/' ./ranger/data/scope.sh | shellcheck -a -
 	@echo
 
 test_other:
-	@echo "$(bold)Checking completeness of man page...$(sgr0)"
+	@echo "$(bold)Checking completeness of man page...$(normal)"
 	@tests/manpage_completion_test.py
 	@echo
 
 test: test_py test_shellcheck
-	@echo "$(bold)Finished testing: All tests passed!$(sgr0)"
+	@echo "$(bold)Finished testing: All tests passed!$(normal)"
 
 doc/ranger.1: doc/ranger.pod README.md
 	pod2man --stderr --center='ranger manual' \