summaryrefslogtreecommitdiff
path: root/02-update-mirrors.sh
blob: 2e61862e28414174e95344953ec2fd5a834c897d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# SPDX-License-Identifier: GPL-2.0-or-later

source ./common.sh

LIBCAMERA=${1:-$(srcdir libcamera)}

check_version $LIBCAMERA $ID

echo "Mirroring libcamera at version : " $(libcamera_version "$LIBCAMERA")

sed -e '/#.*/d' -e '/^$/d' libcamera-mirrors | while read remote ;
do
	echo "Mirroring to remote : " $remote
	git -C $LIBCAMERA push -f $remote master:refs/heads/master
done

completed $ID