Skip to content

Commit a1e2fb4

Browse files
committed
improved script to auto-generate LinuxMain.swift and test manifests
1 parent 359c57d commit a1e2fb4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Utilities/generate-linuxmain.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@ do
1212
then
1313
# echo "$manifestpath does not exist"
1414
generate="yes"
15-
elif /bin/test `/usr/bin/find "${testspath}/${testdir}" -newer "${manifestpath}"`
16-
then
17-
# echo "newer files than $manifestpath"
18-
generate="yes"
15+
else
16+
newer=`/usr/bin/find "${testspath}/${testdir}" -newer "${manifestpath}"`
17+
if /bin/test "${newer}"
18+
then
19+
# echo "newer files than $manifestpath"
20+
generate="yes"
21+
fi
1922
fi
2023
done
2124

22-
if /bin/test ${generate}
25+
if /bin/test "${generate}"
2326
then
24-
/usr/bin/find "${testspath}" -name ${manifest} -exec rm -f {} \;
27+
/usr/bin/find "${testspath}" -name "${manifest}" -exec rm -f {} \;
2528
echo "Regenerating test manifests"
2629
/usr/bin/swift test --generate-linuxmain
2730
fi

0 commit comments

Comments
 (0)