autotools: fix make dist command

Now, `make dist` can be used for generating tarballs. It simplifies
making proper release tarballs. Also, it includes some files, that
are removed in RELEASE_GUIDE.md:
 - apidocs/
 - CHANGELOG
 - theme_template
It is a good idea to include such a kind of documentation.

Update RELEASE_GUIDE.md.
This commit is contained in:
Dmitry Podgorny
2019-03-04 18:26:28 +02:00
parent d0a1cae8e8
commit 0f0659aa09
2 changed files with 34 additions and 40 deletions

View File

@@ -20,14 +20,13 @@ Usually release candidates are tagged 0.6.0.rc1, 0.6.0.rc2 and tested for a week
* Update profrc.example
## Creating artefacts
* Clone the repository
* Set the correct release version in configure.ac:
```
AC_INIT([profanity], [0.6.0], [boothj5web@gmail.com])
```
* Set the package status in configure ac:
* Set the package status in configure.ac:
```
PACKAGE_STATUS="release"
@@ -36,13 +35,29 @@ PACKAGE_STATUS="release"
* Commit
* Tag (0.6.0)
* Push
* Set version to next release
* Configure to generate fresh Makefile:
```
./bootstrap.sh && ./configure
```
* Generate tarballs:
```
make dist
make dist-bzip2
make dist-xz
make dist-zip
```
* Set version to next release:
```
AC_INIT([profanity], [0.7.0], [boothj5web@gmail.com])
```
* Set the pacakge status back to dev
* Set the pacakge status back to dev:
```
PACKAGE_STATUS="development"
@@ -50,40 +65,6 @@ PACKAGE_STATUS="development"
* Create a branch for patch releases (0.6.patch)
* Push
* Clone the repository into a fresh folder and checkout the tag
```
git clone https://github.com/boothj5/profanity.git profanity-0.6.0
cd profanity-0.6.0
git checkout 0.6.0
```
* Remove files not needed in the artefcat
```
rm -rf apidocs .git
rm CHANGELOG configure-debug configure-plugins .gitignore profanity.spec prof.supp README.md theme_template travis-build.sh .travis.yml
```
* Bootstrap the build
```
./bootstrap.sh
```
* Remove automake cache
```
rm -rf autom4te.cache
```
* Leave the folder and create the artefacts
```
cd ..
tar -zcvf profanity-0.6.0.tar.gz profanity-0.6.0
zip -r profanity-0.6.0.zip profanity-0.6.0
```
## Updating website
* Make changes to the git repo incuding uploading the new artefacts at: