FROMLIST: BACKPORT: [PATCH 6/6] arm64: Wire up and expose the new compat vDSO
[GitHub/exynos8895/android_kernel_samsung_universal8895.git] / scripts / find_matching_major.sh
CommitLineData
1cac41cb
MB
1#!/bin/bash
2
3# find_matching_version src_path version
4TOP_DIR="$1"
5SRC_PATH="$2"
6FULL_SRC_PATH="$1/$2"
7INPUT_VERSION="$3"
8
9if [[ -d "${FULL_SRC_PATH}_${INPUT_VERSION}" ]]
10then
11 printf "${SRC_PATH}_${INPUT_VERSION}"
12else
13 printf "${SRC_PATH}"
14fi