From 2eee76d53feb6c806049e824c71b625ac47e489a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 2 Dec 2020 10:13:37 +0100 Subject: add 'mkview' image to run 'repoview' on the repository --- mkview/mkrepoview | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mkview/mkrepoview (limited to 'mkview/mkrepoview') diff --git a/mkview/mkrepoview b/mkview/mkrepoview new file mode 100644 index 0000000..e16b4b7 --- /dev/null +++ b/mkview/mkrepoview @@ -0,0 +1,23 @@ +#!/bin/sh +export LANG=C + + cd /repo + + for dep in SRPMS fedora/??/*/{i386,x86_64} enterprise/?/*/{i386,x86_64,armhfp,aarch64} + do + ### [[ $dep =~ /modular ]] && continue + [ -d $dep/headers ] && continue + + if [ $dep/repodata -nt $dep/repoview ]; then + pushd $dep + nom=${PWD#/repo/} + repoview \ + --url http://rpms.remirepo.net/$nom \ + --template-dir /repo/repotmpl \ + --quiet \ + --title "Remi's RPM repository - ${nom//\// - }" \ + . && touch repoview + popd + fi + done + -- cgit