Skip to content

Commit e09f841

Browse files
committed
print AppleWebkit version info
1 parent b649c44 commit e09f841

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/info.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
#!/bin/bash -e
22

3+
URL="https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-${npm_package_config_webkitGTK}"
34
ROOTDIR=$PWD
4-
REVISION=$(svn info --show-item last-changed-revision "https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-${npm_package_config_webkitGTK}")
5-
INFO=$(svn info "https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-${npm_package_config_webkitGTK}")
5+
REVISION=$(svn info --show-item last-changed-revision "${URL}")
6+
INFO=$(svn info "${URL}")
67
CONFIG=$(node -e "console.log(require('./package.json').config)")
8+
APPLE_VERSION=$(svn cat "${URL}/Source/WebCore/Configurations/Version.xcconfig" | grep 'MAJOR_VERSION\s=\|MINOR_VERSION\s=\|TINY_VERSION\s=\|MICRO_VERSION\s=\|NANO_VERSION\s=')
79

810
SIZE=$(du -ah $ROOTDIR/build/compiled || true)
911

1012
printf "\n\n\n\n\n\t\t\tRevision: \x1B[32m$REVISION\x1B[0m\n\n\n"
1113
printf "Config:\n$CONFIG\n\n"
1214
printf "Info:\n$INFO\n\n"
15+
printf "AppleWebkit:\n$APPLE_VERSION\n\n"
1316
printf "Size:\n$SIZE\n\n"

0 commit comments

Comments
 (0)