Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit be5b75b

Browse files
committed
add v8 version auto-updater
1 parent b215fff commit be5b75b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎auto-updater/10-v8-version‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
tmp=`mktemp`
4+
wget -O$tmp 'https://omahaproxy.appspot.com/all?os=linux&channel=beta'
5+
6+
latest_version=$(awk -F, '{ if ( 11ドル != "v8_version" ) { print 11ドル } }' < $tmp)
7+
8+
rm -f $tmp
9+
echo "latest version: $latest_version"
10+
11+
sed -e "s/^\(DEFAULT_VERSION=\).*/1円\"$latest_version\"/" -i support/build/libraries/v8
12+
13+
git update-index -q --ignore-submodules --refresh
14+
git diff-index --quiet HEAD -- && {
15+
echo ""
16+
echo "Nothing changed."
17+
exit 0
18+
}
19+
20+
git commit -a -m "Update latest PHP versions"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /