1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 03:18:32 +03:00
Files
android_cast/scripts/init-wireguard-submodule.sh
2026-06-11 11:19:21 +02:00

14 lines
637 B
Bash
Executable File

#!/usr/bin/env bash
# Initialize wireguard-android submodule (third-party/wireguard-android in .gitmodules).
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
if ! grep -q 'third-party/wireguard-android' .gitmodules 2>/dev/null; then
echo "error: .gitmodules missing third-party/wireguard-android — use repo .gitmodules from git" >&2
exit 1
fi
git submodule sync third-party/wireguard-android
git submodule update --init --recursive third-party/wireguard-android
echo "wireguard-android ready under third-party/wireguard-android"
echo "Gradle includes :tunnel when third-party/wireguard-android/tunnel exists."