6 echo "Usage: $COMMAND repo1..."
7 echo " a 'RPMS' subdir is expected in each repo arg"
11 [[ -n "$@" ]] || usage
12 case "$1" in *-h*) usage ;; esac
16 for rpms_dir in $(find "$@" -name RPMS) ; do
17 pushd $rpms_dir >& /dev/null
19 echo "==================== Dealing with repo $(pwd)"
21 rsync --archive --verbose $(find RPMS -type f | egrep '/(bootcd|bootstrapfs|nodeimage|noderepo|slicerepo)-.*-.*-.*-.*rpm') PARTIAL-RPMS/
22 echo "==================== building packages index in $(pwd) .."
23 createrepo PARTIAL-RPMS
24 echo '==================== DONE'