chromium/third_party/android_build_tools/aapt2/print_version.sh

#!/bin/bash
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -e
DIR_SRC_ROOT=$(pwd)/
DIR_SRC_ROOT=${DIR_SRC_ROOT%/src/*}/src
SUBDIR=$(cd $(dirname $0); pwd)
SUBDIR="${SUBDIR#$DIR_SRC_ROOT/}"
CIPD_PACKAGE=chromium/$SUBDIR
CIPD_SUBDIR=$SUBDIR/cipd

exec $DIR_SRC_ROOT/build/3pp_common/print_cipd_version.py \
    --subdir "$CIPD_SUBDIR" \
    --cipd-package "$CIPD_PACKAGE" \
    "$@"