summaryrefslogtreecommitdiff
path: root/tools/notsd-move
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-09-13 14:17:07 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-09-13 14:17:07 -0400
commitb3c36bc62472b56f30ef88b1e0532f83204c7c79 (patch)
tree05217dfaefd966a9ecc6100219feadea33d5602e /tools/notsd-move
parentaba435a4c9ccfbe4d86365c8b386e841fd893ca1 (diff)
tools/notsd-move: don't require putting something in each file
Diffstat (limited to 'tools/notsd-move')
-rwxr-xr-xtools/notsd-move6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/notsd-move b/tools/notsd-move
index bf0646528f..85e3fcb3cd 100755
--- a/tools/notsd-move
+++ b/tools/notsd-move
@@ -683,13 +683,13 @@ breakup_makefile() (
[[ "$(wc -l <<<"$d")" = 1 ]]
file="$d/Makefile"
fi
- elif [[ $file = all ]]; then
- printf '%s\n' "$line" | tee -a "${files[@]}" >/dev/null
- else
if ! in_array "$file" "${files[@]}"; then
cat .tmp.move.all > "$file"
files+=("$file")
fi
+ elif [[ $file = all ]]; then
+ printf '%s\n' "$line" | tee -a "${files[@]}" >/dev/null
+ else
printf '%s\n' "$line" >> "$file"
fi
done < <(fixup_makefile <Makefile.am)