7 echo "Usage: $COMMAND repo1..."
8 echo " a 'RPMS' subdir is expected in each repo arg"
12 [[ -n "$@" ]] || usage
17 if [ ! -d $repo/RPMS ] ; then
18 echo could not find $repo/RPMS - ignored
23 echo "==================== Dealing with repo $repo"
25 rsync --archive --verbose $(find RPMS -type f | egrep '/(bootcd|bootstrapfs|noderepo|slicerepo)-.*-.*-.*-.*rpm') PARTIAL-RPMS/
26 echo "==================== building packages index in $repo .."
27 createrepo PARTIAL-RPMS
28 echo '==================== DONE'