blob: 3e42a09b2c602ec5635b27078ca78ba8fd7ef353 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
if [ -z "$(ls --almost-all "pkg/$DISTRIBUTION")" ] || [ -f "pkg/$DISTRIBUTION/.git" ]; then
PKG_SUBDIR="$(realpath "pkg/$DISTRIBUTION" --relative-to "$PWD")"
git submodule sync "$PKG_SUBDIR"
git submodule update --init "$PKG_SUBDIR"
fi
|