From 6cf7a975a11b04ddfb0ad98137576acdeb107a97 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 13 Aug 2018 16:12:03 -0700 Subject: [PATCH] Factor out a repeated string, and reduce the length of a long line. --- cranelift/test-all.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cranelift/test-all.sh b/cranelift/test-all.sh index 4941e04610..3547f16000 100755 --- a/cranelift/test-all.sh +++ b/cranelift/test-all.sh @@ -41,14 +41,15 @@ fi # Check if any Python files have changed since we last checked them. tsfile="$topdir/target/meta-checked" +meta_python="$topdir/lib/codegen/meta-python" if [ -f "$tsfile" ]; then - needcheck=$(find "$topdir/lib/codegen/meta-python" -name '*.py' -newer "$tsfile") + needcheck=$(find "$meta_python" -name '*.py' -newer "$tsfile") else needcheck=yes fi if [ -n "$needcheck" ]; then banner "Checking python source files" - "$topdir/lib/codegen/meta-python/check.sh" + "$meta_python/check.sh" touch "$tsfile" || echo no target directory fi