2021-01-18 15:27:25 +01:00
|
|
|
#!/bin/bash
|
2021-01-18 15:48:15 +01:00
|
|
|
# Copyright (C) 2017-2020 The Project X-Ray Authors.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a ISC-style
|
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
|
# https://opensource.org/licenses/ISC
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: ISC
|
2021-01-18 15:27:25 +01:00
|
|
|
|
2021-01-19 11:31:21 +01:00
|
|
|
if ! test $(find ${BUILD_DIR} -name "segdata_gtp_common_mid_right.txt" | wc -c) -eq 0
|
2021-01-18 15:27:25 +01:00
|
|
|
then
|
2021-01-19 11:31:21 +01:00
|
|
|
${XRAY_MERGEDB} gtp_common_mid_right ${BUILD_DIR}/segbits_gtp_common.db
|
|
|
|
|
${XRAY_MERGEDB} mask_gtp_common_mid_right ${BUILD_DIR}/mask_gtp_common.db
|
|
|
|
|
${XRAY_MERGEDB} gtp_common_mid_left ${BUILD_DIR}/segbits_gtp_common.db
|
|
|
|
|
${XRAY_MERGEDB} mask_gtp_common_mid_left ${BUILD_DIR}/mask_gtp_common.db
|
2021-01-18 15:27:25 +01:00
|
|
|
fi
|
|
|
|
|
|
2021-01-19 11:31:21 +01:00
|
|
|
if ! test $(find ${BUILD_DIR} -name "segdata_gtp_common.txt" | wc -c) -eq 0
|
2021-01-18 15:27:25 +01:00
|
|
|
then
|
2021-01-19 11:31:21 +01:00
|
|
|
${XRAY_MERGEDB} gtp_common ${BUILD_DIR}/segbits_gtp_common.db
|
|
|
|
|
${XRAY_MERGEDB} mask_gtp_common ${BUILD_DIR}/mask_gtp_common.db
|
2021-01-18 15:27:25 +01:00
|
|
|
fi
|