#!/bin/bash # moveperlpkgs: put packages in correct directories on ftp server set -x cd ~/cfo-repo/perl-modules SRPMS=$(echo *.src.rpm) [ "$(echo *.fc28.*.rpm)" != "*.fc28.*.rpm" ] && mv *.fc28.*.rpm RPMS.fc28 [ "$(echo *.fc29.*.rpm)" != "*.fc29.*.rpm" ] && mv *.fc29.*.rpm RPMS.fc29 [ "$(echo *.fc30.*.rpm)" != "*.fc30.*.rpm" ] && mv *.fc30.*.rpm RPMS.fc30 [ "$(echo *.fc31.*.rpm)" != "*.fc31.*.rpm" ] && mv *.fc31.*.rpm RPMS.fc31 [ "$(echo *.fc32.*.rpm)" != "*.fc32.*.rpm" ] && mv *.fc32.*.rpm RPMS.fc32 [ "$(echo *.fc33.*.rpm)" != "*.fc33.*.rpm" ] && mv *.fc33.*.rpm RPMS.fc33 [ "$(echo *.fc34.*.rpm)" != "*.fc34.*.rpm" ] && mv *.fc34.*.rpm RPMS.fc34 [ "$(echo *.fc35.*.rpm)" != "*.fc35.*.rpm" ] && mv *.fc35.*.rpm RPMS.fc35 [ "$(echo *.fc36.*.rpm)" != "*.fc36.*.rpm" ] && mv *.fc36.*.rpm RPMS.fc36 [ "$(echo *.fc37.*.rpm)" != "*.fc37.*.rpm" ] && mv *.fc37.*.rpm RPMS.fc37 [ "$(echo *.fc38.*.rpm)" != "*.fc38.*.rpm" ] && mv *.fc38.*.rpm RPMS.fc38 [ "$(echo *.fc39.*.rpm)" != "*.fc39.*.rpm" ] && mv *.fc39.*.rpm RPMS.fc39 [ "$(echo *.fc40.*.rpm)" != "*.fc40.*.rpm" ] && mv *.fc40.*.rpm RPMS.fc40 [ "$(echo *.fc41.*.rpm)" != "*.fc41.*.rpm" ] && mv *.fc41.*.rpm RPMS.fc41 [ "$(echo *.fc42.*.rpm)" != "*.fc42.*.rpm" ] && mv *.fc42.*.rpm RPMS.fc42 [ "$(echo *.fc43.*.rpm)" != "*.fc43.*.rpm" ] && mv *.fc43.*.rpm RPMS.devel [ "$(echo *.rhel8.*.rpm)" != "*.rhel8.*.rpm" ] && mv *.rhel8.*.rpm RPMS.rhel8 [ "$(echo *.el8.*.rpm)" != "*.el8.*.rpm" ] && mv *.el8.*.rpm RPMS.rhel8 [ "$(echo *.rhel9.*.rpm)" != "*.rhel9.*.rpm" ] && mv *.rhel9.*.rpm RPMS.rhel9 [ "$(echo *.el9.*.rpm)" != "*.el9.*.rpm" ] && mv *.el9.*.rpm RPMS.rhel9 [ "$(echo *.rhel10.*.rpm)" != "*.rhel10.*.rpm" ] && mv *.rhel10.*.rpm RPMS.rhel10 [ "$(echo *.el10.*.rpm)" != "*.el10.*.rpm" ] && mv *.el10.*.rpm RPMS.rhel10 if [ "$SRPMS" != "*.src.rpm" ]; then for srcpkg in $SRPMS do ln RPMS.*/$srcpkg SRPMS done fi