Allow to pass prepared mock environment to F:R:Package::rebuild
[Fedora-Rebuild.git] / release
blobafb772bc8e59affd3ee17f2c688921a0299fe319
1 #!/bin/bash
2 OLD_VERSION="v0.9.1"
3 NEW_VERSION="v0.10.0"
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