]> git.pld-linux.org Git - packages/crossnacl-binutils.git/commitdiff
restore lost nacl_revision
authorElan Ruusamäe <glen@delfi.ee>
Wed, 1 Aug 2012 19:37:35 +0000 (22:37 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 1 Aug 2012 19:37:35 +0000 (22:37 +0300)
get-source.sh

index 5098b2495f9d8b1bb6a8995b4559b73be624e99f..68e0b8121db54d7ce8a869ea380b5269a136f5ed 100755 (executable)
@@ -19,6 +19,13 @@ nacl_trunk=http://src.chromium.org/native_client/trunk
 omahaproxy_url=https://omahaproxy.appspot.com
 specfile=crossnacl-binutils.spec
 
+chrome_channel=stable
+chrome_version=$(curl -s "$omahaproxy_url/?os=linux&channel=$chrome_channel" | awk -F, 'NR > 1{print $3}')
+chrome_revision=$(curl -s $omahaproxy_url/revision?version=$chrome_version)
+chrome_branch=$(IFS=.; set -- $chrome_version; echo $3)
+test -e DEPS.py || svn cat http://src.chromium.org/chrome/branches/$chrome_branch/src/DEPS@$chrome_revision > DEPS.py
+nacl_revision=$(awk -F'"' '/nacl_revision.:/{print $4}' DEPS.py)
+
 export GIT_DIR=$package/.git
 
 if [ ! -d $package ]; then
@@ -31,6 +38,7 @@ else
 fi
 
 # get src/native_client/tools/REVISIONS directly from svn
+test -n "$nacl_revision"
 test -e NACL_REVISIONS.sh || svn cat $nacl_trunk/src/native_client/tools/REVISIONS@$nacl_revision > NACL_REVISIONS.sh
 
 if grep -Ev '^(#|(LINUX_HEADERS_FOR_NACL|NACL_(BINUTILS|GCC|GDB|GLIBC|NEWLIB))_COMMIT=[0-9a-f]+$|)' NACL_REVISIONS.sh >&2; then
This page took 0.1141 seconds and 4 git commands to generate.