Skip to content

Commit 6eed448

Browse files
committed
ensure proper blank-line spacing of generated makefile whether runfile is compact or not
1 parent 9c5314d commit 6eed448

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

runfile.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,12 @@ function main() ( set -euo pipefail
152152
cat <<EOF> "${makefile}"
153153
.PHONY: _tasks
154154
_tasks: .tasks
155-
156155
$(
157156
sed -E \
158157
-e "s!^[[:space:]]*!\t${at}!" \
159-
-e "s!^\t${at}([a-zA-Z0-9 _-]+):([a-zA-Z0-9 _-]+)?#(.*)\$!.PHONY: \1\n\1:\2#\3!" \
158+
-e "s!^\t${at}([a-zA-Z0-9 _-]+):([a-zA-Z0-9 _-]+)?#(.*)\$!\n.PHONY: \1\n\1:\2#\3!" \
160159
-e "s!^\t${at}\$!!" \
161-
Runfile
160+
Runfile | cat -s
162161
)
163162
164163
.PHONY: .tasks

0 commit comments

Comments
 (0)