diff options
Diffstat (limited to 'mkview/mkrepoview')
-rw-r--r-- | mkview/mkrepoview | 52 |
1 files changed, 36 insertions, 16 deletions
diff --git a/mkview/mkrepoview b/mkview/mkrepoview index d528468..11b640f 100644 --- a/mkview/mkrepoview +++ b/mkview/mkrepoview @@ -1,25 +1,45 @@ #!/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 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 - 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 + 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" |