diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2015-04-14 22:16:13 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2015-04-14 22:16:13 -0700 |
commit | e1958c0f9bad34edd6cb9775a28c276655729505 (patch) | |
tree | 74f7fc754aa02c6ff8df028e2a56196d66d8efdb /DEVELOP.rst | |
parent | c7f173d4ca97819f9db5b1c704a09a82e5106e62 (diff) |
Add instructions for RPM and DEB package building.
Diffstat (limited to 'DEVELOP.rst')
-rw-r--r-- | DEVELOP.rst | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/DEVELOP.rst b/DEVELOP.rst index 2d163a4f..80989526 100644 --- a/DEVELOP.rst +++ b/DEVELOP.rst @@ -83,4 +83,42 @@ is to launch `psql -E` and entering `\l`. That will print the results and also print the sql statement that was executed to produce that result. In most cases it's a single sql statement, but sometimes it's a series of sql statements that feed the results to each other to get to -the final result.
\ No newline at end of file +the final result. + +Building RPM and DEB packages +----------------------------- + +You will need Vagrant 1.7.2 or higher. In the project root there is a +Vagrantfile that is setup to do multi-vm provisioning. If you're setting things +up for the first time, then do: + +:: + + $ version=x.y.z vagrant up debian + $ version=x.y.z vagrant up centos + +If you already have those VMs setup and you're merely creating a new version of +DEB or RPM package, then you can do: + +:: + + $ version=x.y.z vagrant provision + +That will create a .deb file and a .rpm file. + +The deb package can be installed as follows: + +:: + + $ sudo dpkg -i pgcli*.deb # if dependencies are available. + + or + + $ sudo apt-get install -f pgcli*.deb # if dependencies are not available. + + +The rpm package can be installed as follows: + +:: + + $ sudo yum install pgcli*.rpm |