File: get-include-relative

package info (click to toggle)
btllib 1.4.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,340 kB
  • sloc: cpp: 61,642; sh: 301; python: 222; makefile: 6
file content (17 lines) | stat: -rwxr-xr-x 275 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

if [ -z "${MESON_SOURCE_ROOT}" ]; then
  echo "[ERROR] This script can only be ran with meson!"
  exit 1
fi

if [ "$#" -ne 1 ]; then
  echo "Missing argument"
  exit 1
fi

set -e

cd "${MESON_SOURCE_ROOT}"

echo -n $(dirname ${1#"${MESON_SOURCE_ROOT}/include/"})