rebuildperl: Allow to specify configuration file with --config option
[Fedora-Rebuild.git] / release
blob18c6fd18dd2bd5a5d1718e353ae991d26cddf182
1 #!/bin/bash
2 OLD_VERSION="v0.12.0"
3 NEW_VERSION="v0.12.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