#!/bin/sh # Red Hat Linux for rel in 7 8 9 do m4 -Dbaseos=rhl$rel -Drepo=base -Disa=x86_32 mock-generic-cfg.m4 > base-redhat-$rel-i386.cfg m4 -Dbaseos=rhl$rel -Drepo=city-fan -Disa=x86_32 mock-generic-cfg.m4 > city-fan-redhat-$rel-i386.cfg done # CentOS (x86_32 = i386) for rel in 3 4 5 do m4 -Dbaseos=centos$rel -Drepo=base -Disa=x86_32 mock-generic-cfg.m4 > base-centos-$rel-i386.cfg m4 -Dbaseos=centos$rel -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-centos-$rel-x86_64.cfg m4 -Dbaseos=centos$rel -Drepo=city-fan -Disa=x86_32 mock-generic-cfg.m4 > city-fan-centos-$rel-i386.cfg m4 -Dbaseos=centos$rel -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-centos-$rel-x86_64.cfg [ $rel != 3 ] && m4 -Dbaseos=centos$rel -Drepo=epel -Disa=x86_32 mock-generic-cfg.m4 > epel-centos-$rel-i386.cfg [ $rel != 3 ] && m4 -Dbaseos=centos$rel -Drepo=epel -Disa=x86_64 mock-generic-cfg.m4 > epel-centos-$rel-x86_64.cfg [ $rel != 3 ] && m4 -Dbaseos=centos$rel -Drepo=pptp-stable -Disa=x86_32 mock-generic-cfg.m4 > pptps-centos-$rel-i386.cfg [ $rel != 3 ] && m4 -Dbaseos=centos$rel -Drepo=pptp-stable -Disa=x86_64 mock-generic-cfg.m4 > pptps-centos-$rel-x86_64.cfg [ $rel != 3 ] && m4 -Dbaseos=centos$rel -Drepo=pptp-beta -Disa=x86_32 mock-generic-cfg.m4 > pptp-centos-$rel-i386.cfg [ $rel != 3 ] && m4 -Dbaseos=centos$rel -Drepo=pptp-beta -Disa=x86_64 mock-generic-cfg.m4 > pptp-centos-$rel-x86_64.cfg [ $rel != 3 ] && m4 -Dbaseos=centos$rel -Drepo=virtensys -Disa=x86_32 mock-generic-cfg.m4 > virtensys-centos-$rel-i386.cfg [ $rel != 3 ] && m4 -Dbaseos=centos$rel -Drepo=virtensys -Disa=x86_64 mock-generic-cfg.m4 > virtensys-centos-$rel-x86_64.cfg [ $rel = 5 ] && m4 -Dbaseos=centos$rel -Drepo=rpmfusion-free -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-free-centos-$rel-i386.cfg [ $rel = 5 ] && m4 -Dbaseos=centos$rel -Drepo=rpmfusion-free -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-free-centos-$rel-x86_64.cfg [ $rel = 5 ] && m4 -Dbaseos=centos$rel -Drepo=rpmfusion-nonfree -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-nonfree-centos-$rel-i386.cfg [ $rel = 5 ] && m4 -Dbaseos=centos$rel -Drepo=rpmfusion-nonfree -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-nonfree-centos-$rel-x86_64.cfg done # CentOS (x86_32 = i686) for rel in 6 7 do m4 -Dbaseos=centos$rel -Drepo=base -Disa=x86_32 mock-generic-cfg.m4 > base-centos-$rel-i686.cfg m4 -Dbaseos=centos$rel -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-centos-$rel-x86_64.cfg m4 -Dbaseos=centos$rel -Drepo=city-fan -Disa=x86_32 mock-generic-cfg.m4 > city-fan-centos-$rel-i686.cfg m4 -Dbaseos=centos$rel -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-centos-$rel-x86_64.cfg [ $rel = 6 ] && m4 -Dbaseos=centos$rel -Drepo=epel -Disa=x86_32 mock-generic-cfg.m4 > epel-centos-$rel-i686.cfg m4 -Dbaseos=centos$rel -Drepo=epel -Disa=x86_64 mock-generic-cfg.m4 > epel-centos-$rel-x86_64.cfg [ $rel = 6 ] && m4 -Dbaseos=centos$rel -Drepo=pptp-stable -Disa=x86_32 mock-generic-cfg.m4 > pptps-centos-$rel-i686.cfg [ $rel = 6 ] && m4 -Dbaseos=centos$rel -Drepo=pptp-stable -Disa=x86_64 mock-generic-cfg.m4 > pptps-centos-$rel-x86_64.cfg [ $rel = 6 ] && m4 -Dbaseos=centos$rel -Drepo=pptp-beta -Disa=x86_32 mock-generic-cfg.m4 > pptp-centos-$rel-i686.cfg [ $rel = 6 ] && m4 -Dbaseos=centos$rel -Drepo=pptp-beta -Disa=x86_64 mock-generic-cfg.m4 > pptp-centos-$rel-x86_64.cfg m4 -Dbaseos=centos$rel -Drepo=virtensys -Disa=x86_32 mock-generic-cfg.m4 > virtensys-centos-$rel-i686.cfg m4 -Dbaseos=centos$rel -Drepo=virtensys -Disa=x86_64 mock-generic-cfg.m4 > virtensys-centos-$rel-x86_64.cfg [ $rel = 6 ] && m4 -Dbaseos=centos$rel -Drepo=rpmfusion-free -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-free-centos-$rel-i686.cfg [ $rel = 6 ] && m4 -Dbaseos=centos$rel -Drepo=rpmfusion-free -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-free-centos-$rel-x86_64.cfg [ $rel = 6 ] && m4 -Dbaseos=centos$rel -Drepo=rpmfusion-nonfree -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-nonfree-centos-$rel-i686.cfg [ $rel = 6 ] && m4 -Dbaseos=centos$rel -Drepo=rpmfusion-nonfree -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-nonfree-centos-$rel-x86_64.cfg done # CentOS (x86_64 only) for rel in 8 do m4 -Dbaseos=centos$rel -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-centos-$rel-x86_64.cfg m4 -Dbaseos=centos$rel -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-centos-$rel-x86_64.cfg m4 -Dbaseos=centos$rel -Drepo=epel -Disa=x86_64 mock-generic-cfg.m4 > epel-centos-$rel-x86_64.cfg done # Rocky (x86_64 only) for rel in 8 9 do m4 -Dbaseos=rocky$rel -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-rocky-$rel-x86_64.cfg m4 -Dbaseos=rocky$rel -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-rocky-$rel-x86_64.cfg m4 -Dbaseos=rocky$rel -Drepo=epel -Disa=x86_64 mock-generic-cfg.m4 > epel-rocky-$rel-x86_64.cfg done # CentOS Stream (x86_64 only) for rel in 9 10 do m4 -Dbaseos=centos-stream$rel -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-centos-stream-$rel-x86_64.cfg m4 -Dbaseos=centos-stream$rel -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-centos-stream-$rel-x86_64.cfg m4 -Dbaseos=centos-stream$rel -Drepo=epel -Disa=x86_64 mock-generic-cfg.m4 > epel-centos-stream-$rel-x86_64.cfg done # RHEL for rel in 7 8 do m4 -Dbaseos=rhel$rel -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-rhel-$rel-x86_64.cfg m4 -Dbaseos=rhel$rel -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-rhel-$rel-x86_64.cfg m4 -Dbaseos=rhel$rel -Drepo=epel -Disa=x86_64 mock-generic-cfg.m4 > epel-rhel-$rel-x86_64.cfg done # Fedora (x86_32 only) for rel in 1 2 3 do m4 -Dbaseos=fc$rel -Drepo=base -Disa=x86_32 mock-generic-cfg.m4 > base-fedora-$rel-i386.cfg m4 -Dbaseos=fc$rel -Drepo=city-fan -Disa=x86_32 mock-generic-cfg.m4 > city-fan-fedora-$rel-i386.cfg [ $rel = 3 ] && m4 -Dbaseos=fc$rel -Drepo=pptp-stable -Disa=x86_32 mock-generic-cfg.m4 > pptps-fedora-$rel-i386.cfg [ $rel = 3 ] && m4 -Dbaseos=fc$rel -Drepo=pptp-beta -Disa=x86_32 mock-generic-cfg.m4 > pptp-fedora-$rel-i386.cfg [ $rel = 3 ] && m4 -Dbaseos=fc$rel -Drepo=virtensys -Disa=x86_32 mock-generic-cfg.m4 > virtensys-fedora-$rel-i386.cfg done # Fedora (x86_32 = i386) for rel in 4 5 6 7 8 9 10 do m4 -Dbaseos=fc$rel -Drepo=base -Disa=x86_32 mock-generic-cfg.m4 > base-fedora-$rel-i386.cfg m4 -Dbaseos=fc$rel -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-fedora-$rel-x86_64.cfg m4 -Dbaseos=fc$rel -Drepo=city-fan -Disa=x86_32 mock-generic-cfg.m4 > city-fan-fedora-$rel-i386.cfg m4 -Dbaseos=fc$rel -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-fedora-$rel-x86_64.cfg m4 -Dbaseos=fc$rel -Drepo=pptp-stable -Disa=x86_32 mock-generic-cfg.m4 > pptps-fedora-$rel-i386.cfg m4 -Dbaseos=fc$rel -Drepo=pptp-stable -Disa=x86_64 mock-generic-cfg.m4 > pptps-fedora-$rel-x86_64.cfg m4 -Dbaseos=fc$rel -Drepo=pptp-beta -Disa=x86_32 mock-generic-cfg.m4 > pptp-fedora-$rel-i386.cfg m4 -Dbaseos=fc$rel -Drepo=pptp-beta -Disa=x86_64 mock-generic-cfg.m4 > pptp-fedora-$rel-x86_64.cfg m4 -Dbaseos=fc$rel -Drepo=virtensys -Disa=x86_32 mock-generic-cfg.m4 > virtensys-fedora-$rel-i386.cfg m4 -Dbaseos=fc$rel -Drepo=virtensys -Disa=x86_64 mock-generic-cfg.m4 > virtensys-fedora-$rel-x86_64.cfg done # Fedora (x86_32 = i586) for rel in 11 do m4 -Dbaseos=fc$rel -Drepo=base -Disa=x86_32 mock-generic-cfg.m4 > base-fedora-$rel-i586.cfg m4 -Dbaseos=fc$rel -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-fedora-$rel-x86_64.cfg m4 -Dbaseos=fc$rel -Drepo=city-fan -Disa=x86_32 mock-generic-cfg.m4 > city-fan-fedora-$rel-i586.cfg m4 -Dbaseos=fc$rel -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-fedora-$rel-x86_64.cfg m4 -Dbaseos=fc$rel -Drepo=pptp-stable -Disa=x86_32 mock-generic-cfg.m4 > pptps-fedora-$rel-i586.cfg m4 -Dbaseos=fc$rel -Drepo=pptp-stable -Disa=x86_64 mock-generic-cfg.m4 > pptps-fedora-$rel-x86_64.cfg m4 -Dbaseos=fc$rel -Drepo=pptp-beta -Disa=x86_32 mock-generic-cfg.m4 > pptp-fedora-$rel-i586.cfg m4 -Dbaseos=fc$rel -Drepo=pptp-beta -Disa=x86_64 mock-generic-cfg.m4 > pptp-fedora-$rel-x86_64.cfg m4 -Dbaseos=fc$rel -Drepo=virtensys -Disa=x86_32 mock-generic-cfg.m4 > virtensys-fedora-$rel-i586.cfg m4 -Dbaseos=fc$rel -Drepo=virtensys -Disa=x86_64 mock-generic-cfg.m4 > virtensys-fedora-$rel-x86_64.cfg done # Fedora (x86_32 = i686) for rel in 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 do m4 -Dbaseos=fc$rel -Drepo=base -Disa=x86_32 mock-generic-cfg.m4 > base-fedora-$rel-i686.cfg m4 -Dbaseos=fc$rel -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-fedora-$rel-x86_64.cfg m4 -Dbaseos=fc$rel -Drepo=city-fan -Disa=x86_32 mock-generic-cfg.m4 > city-fan-fedora-$rel-i686.cfg m4 -Dbaseos=fc$rel -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-fedora-$rel-x86_64.cfg [ $rel -le 20 ] && m4 -Dbaseos=fc$rel -Drepo=pptp-stable -Disa=x86_32 mock-generic-cfg.m4 > pptps-fedora-$rel-i686.cfg [ $rel -le 20 ] && m4 -Dbaseos=fc$rel -Drepo=pptp-stable -Disa=x86_64 mock-generic-cfg.m4 > pptps-fedora-$rel-x86_64.cfg [ $rel -le 20 ] && m4 -Dbaseos=fc$rel -Drepo=pptp-beta -Disa=x86_32 mock-generic-cfg.m4 > pptp-fedora-$rel-i686.cfg [ $rel -le 20 ] && m4 -Dbaseos=fc$rel -Drepo=pptp-beta -Disa=x86_64 mock-generic-cfg.m4 > pptp-fedora-$rel-x86_64.cfg [ $rel -ge 23 ] && m4 -Dbaseos=fc$rel -Drepo=rpmfusion-free -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-free-fedora-$rel-i686.cfg [ $rel -ge 23 ] && m4 -Dbaseos=fc$rel -Drepo=rpmfusion-free -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-free-fedora-$rel-x86_64.cfg [ $rel -ge 23 ] && m4 -Dbaseos=fc$rel -Drepo=rpmfusion-nonfree -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-nonfree-fedora-$rel-i686.cfg [ $rel -ge 23 ] && m4 -Dbaseos=fc$rel -Drepo=rpmfusion-nonfree -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-nonfree-fedora-$rel-x86_64.cfg [ $rel -le 16 ] && m4 -Dbaseos=fc$rel -Drepo=virtensys -Disa=x86_32 mock-generic-cfg.m4 > virtensys-fedora-$rel-i686.cfg [ $rel -le 16 ] && m4 -Dbaseos=fc$rel -Drepo=virtensys -Disa=x86_64 mock-generic-cfg.m4 > virtensys-fedora-$rel-x86_64.cfg done # Branched (no frozen Rawhide) m4 -Dbaseos=branched -Drepo=base -Disa=x86_32 mock-generic-cfg.m4 > base-fedora-branched-i686.cfg m4 -Dbaseos=branched -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-fedora-branched-x86_64.cfg m4 -Dbaseos=branched -Drepo=rpmfusion-free -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-free-fedora-branched-i686.cfg m4 -Dbaseos=branched -Drepo=rpmfusion-free -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-free-fedora-branched-x86_64.cfg m4 -Dbaseos=branched -Drepo=rpmfusion-nonfree -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-nonfree-fedora-branched-i686.cfg m4 -Dbaseos=branched -Drepo=rpmfusion-nonfree -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-nonfree-fedora-branched-x86_64.cfg m4 -Dbaseos=branched -Drepo=city-fan -Disa=x86_32 mock-generic-cfg.m4 > city-fan-fedora-branched-i686.cfg m4 -Dbaseos=branched -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-fedora-branched-x86_64.cfg # Rawhide m4 -Dbaseos=rawhide -Drepo=base -Disa=x86_32 mock-generic-cfg.m4 > base-fedora-rawhide-i686.cfg m4 -Dbaseos=rawhide -Drepo=base -Disa=x86_64 mock-generic-cfg.m4 > base-fedora-rawhide-x86_64.cfg m4 -Dbaseos=rawhide -Drepo=rpmfusion-free -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-free-fedora-rawhide-i686.cfg m4 -Dbaseos=rawhide -Drepo=rpmfusion-free -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-free-fedora-rawhide-x86_64.cfg m4 -Dbaseos=rawhide -Drepo=rpmfusion-nonfree -Disa=x86_32 mock-generic-cfg.m4 > rpmfusion-nonfree-fedora-rawhide-i686.cfg m4 -Dbaseos=rawhide -Drepo=rpmfusion-nonfree -Disa=x86_64 mock-generic-cfg.m4 > rpmfusion-nonfree-fedora-rawhide-x86_64.cfg m4 -Dbaseos=rawhide -Drepo=city-fan -Disa=x86_32 mock-generic-cfg.m4 > city-fan-fedora-rawhide-i686.cfg m4 -Dbaseos=rawhide -Drepo=city-fan -Disa=x86_64 mock-generic-cfg.m4 > city-fan-fedora-rawhide-x86_64.cfg # Rawhide special target for perl mass rebuilds m4 -Dbaseos=rawhide -Drepo=perl -Disa=x86_32 mock-generic-cfg.m4 > perl-fedora-rawhide-i686.cfg m4 -Dbaseos=rawhide -Drepo=perl -Disa=x86_64 mock-generic-cfg.m4 > perl-fedora-rawhide-x86_64.cfg