From: baris Date: Mon, 10 May 2010 18:12:05 +0000 (+0000) Subject: partial-repo.sh is in myplc now X-Git-Tag: foo~161 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cd50c9857142438c3bf3684660caa21b7a202156;p=infrastructure.git partial-repo.sh is in myplc now --- diff --git a/scripts/partial-repo.sh b/scripts/partial-repo.sh deleted file mode 100755 index 09771c0..0000000 --- a/scripts/partial-repo.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# $URL$ - -COMMAND=$(basename $0) - -function usage () { - echo "Usage: $COMMAND repo1..." - echo " a 'RPMS' subdir is expected in each repo arg" - exit 1 -} - -[[ -n "$@" ]] || usage - -set -e - -for repo in "$@" ; do - if [ ! -d $repo/RPMS ] ; then - echo could not find $repo/RPMS - ignored - continue - fi - - cd $repo - echo "==================== Dealing with repo $repo" - mkdir -p PARTIAL-RPMS - rsync --archive --verbose $(find RPMS -type f | egrep '/(bootcd|bootstrapfs|noderepo)-.*-.*-.*-.*rpm') PARTIAL-RPMS/ - echo "==================== building packages index in $repo .." - createrepo PARTIAL-RPMS - echo '==================== DONE' - cd - >& /dev/null -done