summaryrefslogtreecommitdiff
path: root/src/ipa/rkisp1
ModeNameSize
-rw-r--r--meson.build753logplain
-rw-r--r--rkisp1.cpp7679logplain
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
#!/bin/sh

# SPDX-License-Identifier: GPL-2.0-or-later
# Generate a version string using git describe

build_dir="$1"
src_dir="$2"

# If .tarball-version exists, output the version string from the file and exit.
# This file is auto-generated on a 'meson dist' command from the run-dist.sh
# script.
if [ -n "$src_dir" ] && [ -f "$src_dir"/.tarball-version ]
then
	cat "$src_dir"/.tarball-version
	exit 0
fi

# Bail out if the directory isn't under git control
git_dir=$(git rev-parse --git-dir 2>&1) || exit 1

# Derive the source directory from the git directory if not specified.