maint: removed some hardcoded "build" directory names from scripts
[barry/progweb.git] / maintainer / make-yum.sh
blob46638706279014a86dab81bd40d89cf2187844b3
1 #!/bin/bash
4 # Note that to use this script, you need to add "%_gpg_name" to your
5 # ~/.rpmmacros file.
8 set -e
10 # Sign all RPMs found under bmbuild/
11 rpmsign --addsign $(find bmbuild -name "*.rpm" -print)
13 # Create the YUM repo files for each architecture
14 for arch in i386 source-i386 x86_64 source-x86_64 ; do
15 for dir in $(find bmbuild -name "$arch" -type d -print) ; do
16 createrepo $dir
17 cp yum/key $dir/RPM-GPG-KEY-binary-meta
18 done
19 done