File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 33set -e
44
55if [ $# -ne 1 ]; then
6- echo " Usage: $0 <version>"
7- exit 1
6+ echo " Usage: $0 <version>"
7+ exit 1
88fi
99
1010VERSION=" $1 "
@@ -15,17 +15,17 @@ echo "Downloading ${VERSION} stubs..."
1515curl -s -o " relay.stub.php" " $URL "
1616
1717if [[ " $OSTYPE " == " darwin" * ]]; then
18- SED=" gsed"
18+ SED=" gsed"
1919else
20- SED=" sed"
20+ SED=" sed"
2121fi
2222
2323echo " Adjusting stubs..."
2424
2525" $SED " -i -E \
26- -e ' s/^(.*\bfunction\b.*);/\1 {}/' \
27- -e ' s/^(\s*)\);$/\1) {}/' \
28- -e ' s/^(\s*)\): ([^;]+);$/\1): \2 {}/' \
29- -e ' s/^(\s+\*) @alias (.+)$/\1 @see \2()/' \
30- -e ' s/^(\s+\*) @var \$context array/\1 @example $context array/' \
31- relay.stub.php
26+ -e ' s/^(.*\bfunction\b.*);/\1 {}/' \
27+ -e ' s/^(\s*)\);$/\1) {}/' \
28+ -e ' s/^(\s*)\): ([^;]+);$/\1): \2 {}/' \
29+ -e ' s/^(\s+\*) @alias (.+)$/\1 @see \2()/' \
30+ -e ' s/^(\s+\*) @var \$context array/\1 @example $context array/' \
31+ relay.stub.php
You can’t perform that action at this time.
0 commit comments