jjb: Add lttng-modules builds across certain EL kernels
[lttng-ci.git] / automation / ansible / roles / gitmirror / files / update.sh
CommitLineData
09bc9215
KS
1#!/usr/bin/env bash
2
3set -eu
4
5# sudo -u gitdaemon git clone --mirror git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
6
7update_git() {
8 local repodir="$1"
9 local origin="$2"
10
11 if [ ! -d "${repodir}" ] ; then
c16adb7d 12 git clone --mirror "${origin}" "${repodir}"
09bc9215
KS
13 fi
14
15 pushd "$repodir"
16
17 git remote update
18 #git gc
19 mkdir -p info/web
20 git for-each-ref --sort=-committerdate --format='%(committerdate:iso8601)' --count=1 >info/web/last-modified
21
22 popd
23}
24
25##
26# Vanilla composite repo
27##
28
29update_git linux-all.git/ https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
30
31pushd linux-all.git/
32## Add stable if needed
33if ! git remote | grep -q stable ; then
34 git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
35 git fetch stable
36fi
37## Delete broken tree tags
38git tag -d v2.6.11 || true
39git tag -d v2.6.11-tree || true
40popd
41
cb36638c
KS
42##
43# EL kernel RPMs
44##
45update_git rocky.git/ https://git.rockylinux.org/staging/rpms/kernel.git
46
7c950e02
KS
47##
48# SLES kernels
49##
50update_git sles.git/ https://github.com/SUSE/kernel.git
51
09bc9215
KS
52##
53# Ubuntu kernels
54##
55
09bc9215
KS
56update_git ubuntu-focal.git/ git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal
57
58update_git ubuntu-jammy.git/ git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy
59
97ec8412
KS
60update_git ubuntu-noble.git/ git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/noble
61
09bc9215
KS
62##
63# GDB repos
64##
65
66update_git binutils-gdb.git/ git://sourceware.org/git/binutils-gdb.git
This page took 0.024654 seconds and 4 git commands to generate.