#!/bin/bash # movetwistedpkgs: put packages in correct directories on ftp server set -x cd ~/cfo-repo/bittorrent/Twisted SRPMS=$(echo *.src.rpm) [ "$(echo *.fc2.*.rpm)" != "*.fc2.*.rpm" ] && mv *.fc2.*.rpm FC-2/ [ "$(echo *.fc3.*.rpm)" != "*.fc3.*.rpm" ] && mv *.fc3.*.rpm FC-3/ [ "$(echo *.fc4.*.rpm)" != "*.fc4.*.rpm" ] && mv *.fc4.*.rpm FC-4/ [ "$(echo *.fc5.*.rpm)" != "*.fc5.*.rpm" ] && mv *.fc5.*.rpm FC-5/ [ "$(echo *.fc6.*.rpm)" != "*.fc6.*.rpm" ] && mv *.fc6.*.rpm FC-6/ [ "$(echo *.fc7.*.rpm)" != "*.fc7.*.rpm" ] && mv *.fc7.*.rpm F-7/ [ "$(echo *.fc8.*.rpm)" != "*.fc8.*.rpm" ] && mv *.fc8.*.rpm F-8/ [ "$(echo *.fc9.*.rpm)" != "*.fc9.*.rpm" ] && mv *.fc9.*.rpm F-9/ [ "$(echo *.fc10.*.rpm)" != "*.fc10.*.rpm" ] && mv *.fc10.*.rpm F-10/ [ "$(echo *.fc11.*.rpm)" != "*.fc11.*.rpm" ] && mv *.fc11.*.rpm F-11/ [ "$(echo *.fc12.*.rpm)" != "*.fc12.*.rpm" ] && mv *.fc12.*.rpm F-12/ [ "$(echo *.fc13.*.rpm)" != "*.fc13.*.rpm" ] && mv *.fc13.*.rpm F-13/ [ "$(echo *.fc14.*.rpm)" != "*.fc14.*.rpm" ] && mv *.fc14.*.rpm F-14/ [ "$(echo *.fc15.*.rpm)" != "*.fc15.*.rpm" ] && mv *.fc15.*.rpm F-15/ [ "$(echo *.fc16.*.rpm)" != "*.fc16.*.rpm" ] && mv *.fc16.*.rpm F-16/ [ "$(echo *.fc17.*.rpm)" != "*.fc17.*.rpm" ] && mv *.fc17.*.rpm F-17/ [ "$(echo *.fc18.*.rpm)" != "*.fc18.*.rpm" ] && mv *.fc18.*.rpm F-18/ [ "$(echo *.rhel4.*.rpm)" != "*.rhel4.*.rpm" ] && mv *.rhel4.*.rpm RHEL-4/ [ "$(echo *.rhel5.*.rpm)" != "*.rhel5.*.rpm" ] && mv *.rhel5.*.rpm RHEL-5/ [ "$(echo *.rhel6.*.rpm)" != "*.rhel6.*.rpm" ] && mv *.rhel6.*.rpm RHEL-6/ [ "$(echo *.el6.*.rpm)" != "*.el6.*.rpm" ] && mv *.el6.*.rpm RHEL-6/ if [ "$SRPMS" != "*.src.rpm" ]; then for srcpkg in $SRPMS do ln */$srcpkg SRPMS done fi