| 1 |
# Build release archive |
| 2 |
|
| 3 |
1. Reset your working copy to a clean state |
| 4 |
$ git clean -x -d -f |
| 5 |
2. Update NEWS (use Markdown syntax) |
| 6 |
3. Verify that all manpages are up to date. |
| 7 |
4. Bump the version number in: |
| 8 |
a. configure.ac at the line AM_INIT_AUTOMAKE(lcm, X.Y.Z) |
| 9 |
b. lcm-python/setup.py |
| 10 |
c. lcm/lcm.h |
| 11 |
5. Update the AGE, REVISION, and CURRENT variables. See configure.ac |
| 12 |
comments for details. |
| 13 |
6. Build the release tarball |
| 14 |
$ autoreconf -i |
| 15 |
$ ./configure |
| 16 |
$ make |
| 17 |
$ make distcheck |
| 18 |
7. Take the resulting tarball, extract it, build it, install it, make sure |
| 19 |
the basic executables run. |
| 20 |
$ tar xzvf lcm-X.Y.Z.tar.gz |
| 21 |
$ cd lcm-X.Y.Z |
| 22 |
$ ./configure |
| 23 |
$ make |
| 24 |
$ make install |
| 25 |
|
| 26 |
# Test |
| 27 |
|
| 28 |
1. Build and run all unit tests. Verify that they all pass. |
| 29 |
$ cd ../test |
| 30 |
$ make clean |
| 31 |
$ make |
| 32 |
$ ./run_unit_tests.py |
| 33 |
$ ./run_client_server_tests.py |
| 34 |
2. Repeat unit tests on: |
| 35 |
* GNU/Linux |
| 36 |
* OS X |
| 37 |
3. Test C/C++ library on Windows. Run lcm-source.exe and lcm-sink.exe |
| 38 |
4. Test on other available platforms |
| 39 |
5. Fix any errors that appear, and repeat as necessary. |
| 40 |
|
| 41 |
# Upload release archive |
| 42 |
|
| 43 |
1. Commit the changes, tag the release, and push to GitHub. |
| 44 |
$ git commit -a -m "Release X.Y.Z" |
| 45 |
$ git tag vX.Y.Z |
| 46 |
$ git push origin master |
| 47 |
$ git push origin vX.Y.Z |
| 48 |
2. Convert tarball to ZIP file |
| 49 |
$ tar xzvf lcm-X.Y.Z.tar.gz |
| 50 |
$ zip -r lcm-X.Y.Z.zip lcm-X.Y.Z |
| 51 |
3. Draft a new release on GitHub |
| 52 |
a. Associate the release with tag vX.Y.Z |
| 53 |
b. Name the release title "vX.Y.Z" |
| 54 |
c. Add release notes from the NEWS file |
| 55 |
d. Attach lcm-X.Y.Z.zip |
| 56 |
|
| 57 |
# Update documentation |
| 58 |
|
| 59 |
1. Build docs |
| 60 |
$ cd docs |
| 61 |
$ ./build-docs.sh |
| 62 |
2. Clone the documentation repository |
| 63 |
$ cd ../.. |
| 64 |
$ git clone https://github.com/lcm-proj/lcm-proj.github.io |
| 65 |
$ cd lcm-proj.github.io |
| 66 |
3. Copy the built docs to the lcm.www repository |
| 67 |
$ cp -r ../lcm/docs/html/* . |
| 68 |
4. Commit the changes, tag the release, and push to origin |
| 69 |
$ git commit -a -m "Release X.Y.Z" |
| 70 |
$ git tag vX.Y.Z |
| 71 |
$ git push origin master |
| 72 |
$ git push origin vX.Y.Z |
| 73 |
|
| 74 |
# Notify the mailing list |
| 75 |
|
| 76 |
1. Send e-mail to [email protected] |