Skip to content

Commit 5c73b79

Browse files
committed
test/t: Avoid trailing backslash in Makefile.am's to appease automake
1 parent 50f52f7 commit 5c73b79

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

test/generate

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,16 @@ while read -r line; do
4242
if [[ $in_extra_dist ]]; then
4343
if [[ $line != $'\t'* ]]; then
4444
if [[ ! $added ]]; then
45-
echo -e "\ttest_$file.py \\"
45+
echo -e "\ttest_$file.py"
4646
added=true
4747
fi
4848
in_extra_dist=
49-
elif [[ ! $added && $line > $'\t'test_$file.py ]]; then
50-
echo -e "\ttest_$file.py \\"
51-
added=true
49+
else
50+
[[ $line == *\\ ]] || line="$line \\"
51+
if [[ ! $added && $line > $'\t'test_$file.py ]]; then
52+
echo -e "\ttest_$file.py \\"
53+
added=true
54+
fi
5255
fi
5356
echo "$line"
5457
else

test/t/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,6 @@ EXTRA_DIST = \
659659
test_yum_arch.py \
660660
test_yum.py \
661661
test_zopflipng.py \
662-
test_zopfli.py \
662+
test_zopfli.py
663663

664664
all:

test/t/unit/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ EXTRA_DIST = \
1010
test_unit_ip_addresses.py \
1111
test_unit_parse_help.py \
1212
test_unit_parse_usage.py \
13-
test_unit_tilde.py \
13+
test_unit_tilde.py
1414

1515
all:

0 commit comments

Comments
 (0)