| 1 |
#!/bin/bash |
| 2 |
set -ex |
| 3 |
|
| 4 |
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 5 |
cd $SCRIPTDIR |
| 6 |
|
| 7 |
export VCPKG_ROOT=$SCRIPTDIR/../vcp |
| 8 |
|
| 9 |
source ../setup_vcp.sh |
| 10 |
|
| 11 |
for port in harfbuzz ; do |
| 12 |
# check that the port fails before it is installed |
| 13 |
$VCPKG_ROOT/vcpkg remove $port || true |
| 14 |
cargo clean --manifest-path $port/Cargo.toml |
| 15 |
cargo run --manifest-path $port/Cargo.toml && exit 2 |
| 16 |
echo THIS FAILURE IS EXPECTED |
| 17 |
echo This is to ensure that we are not spuriously succeeding because the libraries already exist somewhere on the build machine. |
| 18 |
$VCPKG_ROOT/vcpkg install $port |
| 19 |
cargo run --manifest-path $port/Cargo.toml |
| 20 |
done |