mirror of
git://f0xx.org/android_cast
synced 2026-07-29 05:37:52 +03:00
14 lines
637 B
Bash
Executable File
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."
|