123456789101112131415161718192021222324252627282930 |
- #!/bin/bash
- set -e
- function usage {
- echo "$0 pathToBuildWithGbsRpms pathToTargetRepoDir archSubdir"
- }
- if [ $# -ne 3 ]; then
- echo "bad number of arguments"
- usage
- exit
- fi
- pathToBuildWithGbsRpms="$1"
- pathToTargetRepoDir=$2
- archSubDir=$3
- mkdir -p "$pathToTargetRepoDir/$archSubDir"
- cp "$pathToBuildWithGbsRpms"/*.rpm "$pathToTargetRepoDir/$archSubDir"
- CUR_DIR="$PWD"
- cd $pathToTargetRepoDir
- createrepo --update .
- cd $CUR_DIR
|