mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245414, part 2 - Update mfbt/decimal/update.sh to reflect Blink's switch from svn to git, and the different files we now pull. r=Waldo
This commit is contained in:
parent
4061fd51d6
commit
4b0fe2fb73
@ -3,18 +3,13 @@
|
|||||||
# Copies the needed files from a directory containing the original
|
# Copies the needed files from a directory containing the original
|
||||||
# Decimal.h and Decimal.cpp source that we need.
|
# Decimal.h and Decimal.cpp source that we need.
|
||||||
# If [blink-core-source-directory] is not specified, this script will
|
# If [blink-core-source-directory] is not specified, this script will
|
||||||
# attempt to download the latest versions using svn.
|
# attempt to download the latest versions using git.
|
||||||
|
|
||||||
# This was last updated with svn r148833
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
FILES=(
|
FILES=(
|
||||||
"LICENSE-APPLE"
|
"Decimal.h"
|
||||||
"LICENSE-LGPL-2"
|
"Decimal.cpp"
|
||||||
"LICENSE-LGPL-2.1"
|
|
||||||
"platform/Decimal.h"
|
|
||||||
"platform/Decimal.cpp"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
OWN_NAME=`basename $0`
|
OWN_NAME=`basename $0`
|
||||||
@ -40,20 +35,16 @@ if [ $# -eq 1 ]; then
|
|||||||
cp "$P" .
|
cp "$P" .
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
SVN="svn --non-interactive --trust-server-cert"
|
LATEST_SHA=$(git ls-remote https://chromium.googlesource.com/chromium/src.git/ | awk "/refs\/heads\/master/ {print \$1}")
|
||||||
REPO_PATH="https://src.chromium.org/blink/trunk/Source/core"
|
REPO_PATH="https://chromium.googlesource.com/chromium/src.git/+/$LATEST_SHA/third_party/WebKit/Source/platform"
|
||||||
#REPO_PATH="https://svn.webkit.org/repository/webkit/trunk/Source/WebCore"
|
#REPO_PATH="https://github.com/WebKit/webkit/tree/master/Source/WebCore/platform"
|
||||||
|
|
||||||
printf "Looking up latest Blink revision number..."
|
|
||||||
LATEST_REV=`$SVN info $REPO_PATH | grep '^Revision: ' | cut -c11-`
|
|
||||||
echo done.
|
|
||||||
|
|
||||||
for F in "${FILES[@]}"
|
for F in "${FILES[@]}"
|
||||||
do
|
do
|
||||||
printf "Exporting r$LATEST_REV of `basename $F`..."
|
printf "Downloading `basename $F`..."
|
||||||
$SVN export -r $LATEST_REV $REPO_PATH/$F 2>/dev/null 1>&2
|
curl "$REPO_PATH/${F}?format=TEXT" | base64 -D > "$F"
|
||||||
echo done.
|
echo done.
|
||||||
done
|
done
|
||||||
|
echo $LATEST_SHA > UPSTREAM-GIT-SHA
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Apply patches:
|
# Apply patches:
|
||||||
|
Loading…
Reference in New Issue
Block a user