mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-27 01:40:51 +08:00
26 lines
508 B
Bash
Executable File
26 lines
508 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script downloads the gir-files-rs repository and copies the GIR files into the
|
|
# girs directory
|
|
|
|
set -euo pipefail
|
|
|
|
repository="https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git"
|
|
|
|
destination="girs"
|
|
|
|
if [ ! -d "$destination" ]; then
|
|
echo "Creating directory $destination"
|
|
mkdir "$destination"
|
|
fi
|
|
|
|
# clone into a temporary directory
|
|
temp_dir=$(mktemp -d)
|
|
trap 'rm -rf "$temp_dir"' EXIT
|
|
|
|
|
|
git clone "$repository" "$temp_dir"
|
|
|
|
|
|
cp -r "$temp_dir"/*.gir "$destination"
|