2013-03-13 19:12:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#/ Usage: bootstrap https://base.url.com/from/libchromiumcontent/script/upload
|
|
|
|
#/ Bootstrap this project.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
usage() {
|
|
|
|
grep '^#/' <"$0"| cut -c4-
|
|
|
|
}
|
|
|
|
|
|
|
|
BASE_URL="${1}"
|
|
|
|
|
|
|
|
if [ -z "${BASE_URL}" ]; then
|
|
|
|
usage
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
git submodule sync --quiet
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
|
|
|
SOURCE_ROOT="$(pwd -P)"
|
|
|
|
DOWNLOAD_DIR="${SOURCE_ROOT}/vendor/download"
|
|
|
|
mkdir -p "${DOWNLOAD_DIR}"
|
2013-03-25 16:23:37 +00:00
|
|
|
vendor/libchromiumcontent/script/download -f "${BASE_URL}" "${DOWNLOAD_DIR}/libchromiumcontent"
|