#!/bin/sh

if [ ! -d depot_tools ];then
 echo "ERROR: a terminal must be opened in the 'chromium-project' folder and"
 echo "       this script run from the terminal window."
 exit
fi

P="chromium-93.0.4577.82"
wget --tries=1 --no-clobber https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz
if [ $? -ne 0 ];then
 echo 'ERROR: DOWNLOAD FAILED'
fi
sync

#note: depot_tools was got from here:
# git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

#note, patchset for compiling with gcc was got from here:
# wget https://github.com/stha09/chromium-patches/releases/download/chromium-93-patchset-6/chromium-93-patchset-6.tar.xz

#note: gentoo patches were got from here:
# https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/chromium

#note: the jre was bundled inside smartgit.
###end###
