#!/bin/sh export LANG=C function createView() { dep=$1 # echo $dep if [ $dep/repodata -nt $dep/repoview ]; then cd $dep nom=${PWD#/repo/} echo -e "\t$nom" repoview \ --url http://rpms.remirepo.net/$nom \ --template-dir /repo/repotmpl \ --quiet \ --title "Remi's RPM repository - ${nom//\// - }" \ . && touch repoview cd /repo fi } cd /repo createView SRPMS for top in fedora/?? enterprise/{?,??}; do if [ ! -d $top ]; then # echo skip $top continue fi if [ -f $top/.closed ]; then # echo skip $top closed continue fi for dep in $top/*/{i386,x86_64,armhfp,aarch64} do [ -d $dep ] || continue ### [[ $dep =~ /modular ]] && continue [ -d $dep/headers ] && continue createView $dep done done echo "Done"