From 1a6b52a6d551ca88258063a60355a65cd2d8303a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 23 Mar 2011 09:10:00 +0100 Subject: [PATCH] creating partial repos for the node-flavours belongs in build/ --- bin/partial-repo.sh | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 bin/partial-repo.sh diff --git a/bin/partial-repo.sh b/bin/partial-repo.sh deleted file mode 100755 index 09771c0..0000000 --- a/bin/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 -- 2.43.0