Files
cromite/fdroid/sync.sh
T
csagan5 2291cbe5d0 Use relative paths
Use verbose shell commands

Update sorting of deps

Fix license auto-accept

Many other fixes for proper building
2018-01-28 13:36:52 +01:00

37 lines
755 B
Bash
Executable File

#!/bin/bash
set -e
## sync starts in fdroiddata/build/$PKG
echo "SYNC from $PWD"
. common
## install gclient configuration files
cp gclient_android.default ../../srclib/.gclient
cp gclient_entries ../../srclib/.gclient_entries
## create all necessary srclib symlinks so that gclient does not fetch them again
cd ../../srclib
../$PKG/fdroid/gclient-prepare.sh
## gclient must run in the chromium directory and it cannot be a symlink
cd src
set +e
#gclient sync --with_branch_heads --delete_unversioned_trees
echo y | gclient sync --reset
RV=$?
## revert the license workaround
git checkout DEPS
cd ..
if [ $RV -eq 0 ]; then
## success, copy the new gclient_entries
cp .gclient_entries ../$PKG/fdroid/gclient_entries
exit 0
fi
exit $RV