summaryrefslogtreecommitdiffstats
path: root/mkview/mkrepoview
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-12-02 10:13:37 +0100
committerRemi Collet <remi@remirepo.net>2020-12-02 10:13:37 +0100
commit2eee76d53feb6c806049e824c71b625ac47e489a (patch)
treead8e6e30157deba14e8fa92aa5c0487095ba3dea /mkview/mkrepoview
parentb35abd6303fbee73d1b0075c9c505e22966ec118 (diff)
add 'mkview' image to run 'repoview' on the repository
Diffstat (limited to 'mkview/mkrepoview')
-rw-r--r--mkview/mkrepoview23
1 files changed, 23 insertions, 0 deletions
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
+