source: mainline/tools/xcw/bin/helenos-bld-config@ 7e53c37

Last change on this file since 7e53c37 was 7e53c37, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Update files with /bin/bash shebang

  • Property mode set to 100755
File size: 694 bytes
RevLine 
[d548fc0]1#!/bin/bash
2#
[7e53c37]3# SPDX-FileCopyrightText: 2019 Jiri Svoboda
[d548fc0]4#
[7e53c37]5# SPDX-License-Identifier: BSD-3-Clause
[d548fc0]6#
7# Get build configration information
8# HelenOS Cross Compiler Wrapper (XCW)
9# Facilitate cross-compiling external software to HelenOS
10#
11
12XCW="$(dirname "$0")"
13BUILD_ROOT="$(dirname "$(dirname "$(dirname "$XCW")")")"
14if [ -z "$EXPORT_DIR" ]; then
15 EXPORT_DIR="$BUILD_ROOT/export"
16fi
17
18HELENOS_EXPORT_ROOT="$EXPORT_DIR"
19
20source "${EXPORT_DIR}/config.sh"
21
22case ".$1" in
23*.--install-dir) echo "$HELENOS_OVERLAY_PATH";;
24(*)
25 echo "Unknown option $1" >&2
26 echo "Usage: helenos-bld-config <option>" >&2
27 echo " --install-dir Print directory where files should be installed" >&2
28 exit 1;;
29esac
Note: See TracBrowser for help on using the repository browser.