Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 1.53 KB

RELEASING.md

File metadata and controls

71 lines (52 loc) · 1.53 KB

Releasing

Source code

Edit variable $VERSION in check_pgactivity, and update the version field at the end of the inline documentation in this script.

In check_pgactivity.spec :

  • update the tag in the _tag variable (first line)
  • update the version in Version:
  • edit the changelog
    • date format: LC_TIME=C date +"%a %b %d %Y"

In debian/, edit the changelog file

Documentation

Generate updated documentation :

pod2text check_pgactivity > README
podselect check_pgactivity > README.pod

Tagging and building tar file

TAG=REL2_3
git -a $TAG
git push --tags
git archive --prefix=check_pgactivity-$TAG/ -o /tmp/check_pgactivity-$TAG.tgz $TAG

Release on github

Building the RPM file

Installation

yum group install "Development Tools"
yum install rpmdevtools
useradd makerpm

Building the package

su - makerpm
rpmdev-setuptree
git clone https://github.com/OPMDG/check_pgactivity.git
spectool -R -g check_pgactivity/check_pgactivity.spec
rpmbuild -ba check_pgactivity/check_pgactivity.spec

Don't forget to upload the package on github release page.