#! /bin/bash
set -euo pipefail

if [ "$#" -ne 2 ]; then
  echo "Usage: ./make_ostree_sysroot.sh <project source dir> <project binary dir>"
  exit 1
fi

SCRIPT="${1}/tests/ostreesysroot/makephysical.sh"
REPO="${2}/ostree_repo"
PORT=$("${1}/tests/get_open_port.py")

if [ ! -d "${REPO}" ]; then
  "${SCRIPT}" "${REPO}" ${PORT}
fi

#! /bin/bash
set -euo pipefail

if [ "$#" -ne 2 ]; then
  echo "Usage: ./make_ostree_sysroot.sh <project source dir> <project binary dir>"
  exit 1
fi

SCRIPT="${1}/tests/ostree-scripts/makephysical.sh"
REPO="${2}/ostree_repo"
PORT=$("${1}/tests/get_open_port.py")

if [ ! -d "${REPO}" ]; then
  "${SCRIPT}" "${REPO}" ${PORT}
fi

Use ostree scripts from the repo
Use ostree scripts from the repo

Signed-off-by: Laurent Bonnans <0909bc0a3d1b0c91d8e00372b9633e8e9ea958de@here.com>
