yum group build renamed back to buildsys-build
[Fedora-Rebuild.git] / release
blobd58fc09cadaf825bd8710042f0a06b270ca2b287
1 #!/bin/bash
2 OLD_VERSION="v0.9.0"
3 NEW_VERSION="v0.9.1"
4 NAME=Fedora-Rebuild
5 ARCHIVE="${NAME}-${NEW_VERSION}.tar.gz"
7 case $1 in
8 dist)
9 find lib -name '*.pm' -exec \
10 sed -i -e 's/'"$OLD_VERSION"'/'"$NEW_VERSION"'/' {} \;
12 make clean && \
13 perl Makefile.PL && \
14 rm MANIFEST && \
15 make manifest && \
16 make && make test && \
17 make dist
19 publish)
20 gpg --armor --detach-sign "${ARCHIVE}" && \
21 git tag -f "$NEW_VERSION" && \
22 scp -p "${ARCHIVE}"* "fedorapeople.org:public_html/${NAME}"
25 echo "Usage: $(basename $0) [dist|publish]"
26 exit 1;
27 esac