change to relative paths

This commit is contained in:
Your Name 2021-05-26 13:04:35 +00:00
parent ba761e188c
commit 09ba0f6cc4

View File

@ -3,32 +3,32 @@
RED='\033[0;31m' RED='\033[0;31m'
NC='\033[0m' # No Color NC='\033[0m' # No Color
cd ~ #cd ~
sudo apt-get install python sudo apt-get install python
sudo apt-get install wiggle sudo apt-get install wiggle
echo -e ${RED} -------- download bromite repo ${NC} echo -e ${RED} -------- download bromite repo ${NC}
git clone https://github.com/bromite/bromite git clone https://github.com/bromite/bromite
cd ~/bromite cd bromite
git fetch git fetch
git pull git pull
VERSION=$( cat ~/bromite/build/RELEASE ) VERSION=$( cat ./build/RELEASE )
echo -e ${RED} -------- lastest version is: $VERSION ${NC} echo -e ${RED} -------- lastest version is: $VERSION ${NC}
cd ~ cd ..
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
PATH=~/gitui:~/chromium/src/third_party/llvm-build/Release+Asserts/bin:~/depot_tools/:/usr/local/go/bin:$PATH PATH=./chromium/src/third_party/llvm-build/Release+Asserts/bin:./depot_tools/:/usr/local/go/bin:$PATH
echo -e ${RED} -------- download chromium repo ${NC} echo -e ${RED} -------- download chromium repo ${NC}
mkdir ~/chromium mkdir ./chromium
cd ~/chromium cd ./chromium
gclient root gclient root
mkdir ~/chromium/src mkdir ./src
cd ~/chromium/src cd ./src
git init git init
git remote add origin https://chromium.googlesource.com/chromium/src.git git remote add origin https://chromium.googlesource.com/chromium/src.git
@ -37,22 +37,22 @@ git fetch --depth 2 https://chromium.googlesource.com/chromium/src.git +refs/tag
git checkout $VERSION git checkout $VERSION
VERSION_SHA=$( git show-ref -s $VERSION | head -n1 ) VERSION_SHA=$( git show-ref -s $VERSION | head -n1 )
echo >~/chromium/.gclient "solutions = [" echo >../.gclient "solutions = ["
echo >>~/chromium/.gclient " { \"name\" : 'src'," echo >>../.gclient " { \"name\" : 'src',"
echo >>~/chromium/.gclient " \"url\" : 'https://chromium.googlesource.com/chromium/src.git@$VERSION_SHA'," echo >>../.gclient " \"url\" : 'https://chromium.googlesource.com/chromium/src.git@$VERSION_SHA',"
echo >>~/chromium/.gclient " \"deps_file\" : 'DEPS'," echo >>../.gclient " \"deps_file\" : 'DEPS',"
echo >>~/chromium/.gclient " \"managed\" : True," echo >>../.gclient " \"managed\" : True,"
echo >>~/chromium/.gclient " \"custom_deps\" : {" echo >>../.gclient " \"custom_deps\" : {"
echo >>~/chromium/.gclient " }," echo >>../.gclient " },"
echo >>~/chromium/.gclient " \"custom_vars\": {}," echo >>../.gclient " \"custom_vars\": {},"
echo >>~/chromium/.gclient " }," echo >>../.gclient " },"
echo >>~/chromium/.gclient "]" echo >>../.gclient "]"
echo >>~/chromium/.gclient "target_os=['android']" echo >>../.gclient "target_os=['android']"
#echo -e ${RED} -------- sync other chromium repos ${NC} #echo -e ${RED} -------- sync other chromium repos ${NC}
#gclient metrics --opt-out #gclient metrics --opt-out
git submodule foreach git config -f ~/chromium/src/.git/config submodule.$name.ignore all git submodule foreach git config -f ./.git/config submodule.$name.ignore all
git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*' git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*'
#git config diff.ignoreSubmodules all #git config diff.ignoreSubmodules all