Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 1 | -*- outline -*- |
Christian Egli | 5510e4a | 2009-11-05 09:55:30 +0000 | [diff] [blame^] | 2 | This HACKING file describes the development environment. |
| 3 | |
| 4 | Copyright (C) 2008, 2009 ViewPlus Technologies, Inc. and JJB |
| 5 | Software, Inc. |
| 6 | |
| 7 | Copying and distribution of this file, with or without modification, |
| 8 | are permitted in any medium without royalty provided the copyright |
| 9 | notice and this notice are preserved. |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 10 | |
| 11 | This file attempts to describe the maintainer-specific notes to follow |
| 12 | when hacking liblouis. |
| 13 | |
Christian Egli | 5510e4a | 2009-11-05 09:55:30 +0000 | [diff] [blame^] | 14 | * Developing |
| 15 | ** Where to get it |
| 16 | The development sources are available through anonymous svn at Google |
| 17 | Code: |
| 18 | |
| 19 | http://code.google.com/p/liblouis/ |
| 20 | |
| 21 | ** Build requirements |
| 22 | This distribution uses Automake, Autoconf, and Libtool. If you are |
| 23 | getting the sources from svn (or change configure.ac), you'll need to |
| 24 | have these tools installed to (re)build. Optionally (if you want to |
| 25 | generate man pages) you'll also need help2man. All of these programs |
| 26 | are available from ftp://ftp.gnu.org/gnu. |
| 27 | |
| 28 | ** Gnulib |
| 29 | This distribution also uses Gnulib (http://www.gnu.org/software/gnulib) |
| 30 | to share common files, with the files being checked in to svn. If you |
| 31 | want to update from the current gnulib, install gnulib, and then run |
| 32 | gnulib-tool --import |
| 33 | in the top-level directory. |
| 34 | |
| 35 | For the record, the first time invocation was |
| 36 | gnulib-tool --import --lib=libgnu --source-base=gnulib \ |
| 37 | --m4-base=gnulib/m4 --aux-dir=build-aux --libtool \ |
| 38 | --macro-prefix=gl getopt-gnu progname version-etc |
| 39 | More modules might have been added since. The currently-used gnulib |
| 40 | modules and other gnulib information are recorded in |
| 41 | gnulib/m4/gnulib-cache.m4. Given a source checkout of gnulib, you can |
| 42 | update the files with gnulib-tool --import. |
| 43 | |
| 44 | ** How to build |
| 45 | After getting the CVS sources, and installing the tools above, you can run |
| 46 | sh ./autogen.sh |
| 47 | to do a fresh build. After that first time, running make should suffice. |
| 48 | |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 49 | * Release Procedure |
| 50 | These steps describe what a maintainer does to make a release; they |
| 51 | are not needed for ordinary patch submission. |
| 52 | |
| 53 | ** Set the version number |
| 54 | Update the version number in NEWS (with version, date, and release |
| 55 | type), ChangeLog and configure.ac. |
| 56 | |
| 57 | ** Commit and tag |
| 58 | Commit the changes and tag this version |
| 59 | |
| 60 | svn cp https://liblouis.googlecode.com/svn/trunk \ |
| 61 | https://liblouis.googlecode.com/svn/tags/liblouis_1_3_8 |
| 62 | |
| 63 | If you know the exact version number that needs to be tagged use |
| 64 | |
| 65 | svn cp https://liblouis.googlecode.com/svn/trunk \ |
| 66 | https://liblouis.googlecode.com/svn/tags/liblouis_1_3_8 -r 109 |
| 67 | |
| 68 | ** Make the release |
| 69 | Check out a clean copy in a different directory, like /tmp. Run |
| 70 | autogen.sh and configure with no special prefixes. Run make distcheck. |
| 71 | This will make sure that all needed files are present, and do a |
| 72 | general sanity check. Run make dist. This will produce a tarball. |
| 73 | |
Christian Egli | 9a3b3ce | 2009-05-27 13:46:37 +0000 | [diff] [blame] | 74 | ./autogen.sh && ./configure && make && make distcheck && make dist |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 75 | |
| 76 | ** Upload |
| 77 | Upload tarball to Google project page, tag as "featured". This will |
| 78 | put the link on the main project page. Remove "featured" tag from |
| 79 | previous tarball release. |
| 80 | |
Christian Egli | 2ed702e | 2009-03-12 13:06:39 +0000 | [diff] [blame] | 81 | ** Online documentation |
| 82 | The online documentation is hosted out of subversion of the Google |
| 83 | code site. To check it out |
| 84 | |
| 85 | svn co https://liblouis.googlecode.com/svn/documentation \ |
| 86 | liblouis-online-documentation |
| 87 | |
| 88 | then move the latest built documentation into this directory and check |
| 89 | it in |
| 90 | |
| 91 | cd liblouis-online-documentation |
| 92 | cp ../liblouis/doc/liblouis.html . |
| 93 | svn ci liblouis.html -m "Update online documentation" |
| 94 | |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 95 | ** Announce |
| 96 | Send an announcement to the liblouis list |
| 97 | liblouis-liblouisxml@freelists.org. See ANNOUNCEMENT for an example. |
| 98 | |
| 99 | ** Other web updates |
| 100 | Update the Google project page. Add the current NEWS to the front |
| 101 | page. |
| 102 | |
| 103 | Also update the page on freshmeat (http://freshmeat.net/projects/liblouis/). |
| 104 | |
| 105 | |