diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-03-26 20:43:47 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-03-26 20:43:47 +0100 |
commit | 057e033d4a73ac610303c98260015c7d5ecb28b7 (patch) | |
tree | bce401d73b954cdc32f79a9ca63bab6e00c2843b /extra/chromium/createSource.htm | |
parent | f50a79d08ee34184566f3c7d9def0ea4358318e9 (diff) | |
parent | 596ca3d76703ef12aa62f4c95d4cf107592fcb1e (diff) | |
download | nutyx-extra-057e033d4a73ac610303c98260015c7d5ecb28b7.tar.gz nutyx-extra-057e033d4a73ac610303c98260015c7d5ecb28b7.tar.bz2 nutyx-extra-057e033d4a73ac610303c98260015c7d5ecb28b7.tar.xz nutyx-extra-057e033d4a73ac610303c98260015c7d5ecb28b7.zip |
Merge commit 'lesibel/master'
Diffstat (limited to 'extra/chromium/createSource.htm')
-rw-r--r-- | extra/chromium/createSource.htm | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/extra/chromium/createSource.htm b/extra/chromium/createSource.htm new file mode 100644 index 000000000..3df70baab --- /dev/null +++ b/extra/chromium/createSource.htm @@ -0,0 +1,54 @@ +#!/bin/bash + +. PKGBUILD + +# see http://src.chromium.org/svn/trunk/src/tools/export_tarball/export_tarball.py +nonessential_dirs=( + 'src/chrome/test/data' + 'src/chrome/tools/test/reference_build' + 'src/gears/binaries' + 'src/net/data/cache_tests' + 'src/o3d/documentation' + 'src/o3d/samples' + 'src/third_party/lighttpd' + 'src/third_party/WebKit/LayoutTests' + 'src/webkit/data/layout_tests' + 'src/webkit/tools/test/reference_build' +) + +current=$(pwd) +tmp=$(mktemp -d) +mkdir -p $tmp/chromium-$pkgver +cd $tmp/chromium-$pkgver + +# this should be updated to a more recent revision on major updates +svn co -r38382 -q http://src.chromium.org/svn/trunk/tools/depot_tools/ depot_tools + +export PATH=./depot_tools/:$PATH +gclient.py config http://src.chromium.org/svn/releases/$pkgver +sed -e '15i\ "src/third_party/WebKit/LayoutTests": None,' \ + -e '15i\ "src/chrome/tools/test/reference_build": None,' \ + -e '15i\ "src/third_party/ffmpeg/binaries/chromium/linux/ia32": None,' \ + -e '15i\ "src/third_party/ffmpeg/binaries/chromium/linux/ia32_dbg": None,' \ + -e '15i\ "src/third_party/ffmpeg/binaries/chromium/linux/x64": None,' \ + -e '15i\ "src/third_party/ffmpeg/binaries/chromium/linux/x64_dbg": None,' \ + -i .gclient +gclient.py sync --force --nohooks + +svnversion src > src/build/LASTCHANGE.in + +for i in ${nonessential_dirs[@]}; do + rm -rf $i +done + +find . -name '.svn' -type d -exec rm -rf {} \; +find . -iname '*.dll' -delete +find . -iname '*.exe' -delete +find . -iname '*.o' -delete +find . -iname '*.nexe' -delete + +cd .. +bsdtar cJf $current/chromium-$pkgver.tar.xz chromium-$pkgver +cd $current + +rm -rf $tmp |