]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
extract v8 version properly
authorElan Ruusamäe <glen@delfi.ee>
Tue, 9 Apr 2013 19:09:53 +0000 (22:09 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 9 Apr 2013 19:09:53 +0000 (22:09 +0300)
chromium-browser.spec
get-source.sh

index 887f3a12cd47394ddddb17cbcd3f1d6ad037622f..07f2e6caf4fcfcb3c8de651e55563aca9b18608a 100644 (file)
@@ -252,13 +252,14 @@ mv %{name}-%{branch}.%{basever}/* .
 # Google's versioning is interesting. They never reset "BUILD", which is how we jumped
 # from 3.0.201.0 to 4.0.202.0 as they moved to a new major branch
 . ./chrome/VERSION
-ver=$MAJOR.$MINOR.$BUILD.$PATCH
-test "$ver" = %{version}
+chrome=$MAJOR.$MINOR.$BUILD.$PATCH
+test "$chrome" = %{version}
 
 gyp_rev=$(grep googlecode_url.*gyp DEPS | cut -d'"' -f6 | cut -d@ -f2)
 test "$gyp_rev" = %{gyp_rev} || :
 
-v8_ver=$(awk 'NR=1 {print $NF; exit}' v8/ChangeLog || :)
+. ./v8.sh
+v8=$MAJOR_VERSION.$MINOR_VERSION.$BUILD_NUMBER.$PATCH_LEVEL
 
 # add chromium and pld to useragent
 %define pld_version %(echo %{pld_release} | sed -e 'y/[at]/[AT]/')
index e4a3ec30afb172812ddfa78a872efdf704556760..30b1ce7e0d20ee26571c7ae9c2080f6eaecf6faf 100755 (executable)
@@ -59,7 +59,7 @@ set -x
        cd $PACKAGE_NAME-$VERSION
        du -sh .
 
-       awk 'NR=1 {print $NF; exit}' v8/ChangeLog | tee -a v8.txt
+       awk '/^#define/ && /(MAJOR|MINOR)_VERSION|BUILD_NUMBER|PATCH_LEVEL/ { printf("%s=%s\n", $2, $3) }' v8/src/version.cc | tee -a v8.sh
 
        if [ "$CHANNEL" != "dev" ]; then
                sh -x $WORK_DIR/clean-source.sh emptydirs=1 v8=0 libvpx=0 mesa=0 re2=0
This page took 0.061254 seconds and 4 git commands to generate.