Christian Egli | f70f4e0 | 2011-01-03 15:09:06 +0000 | [diff] [blame^] | 1 | This HACKING file describes the development environment. -*- org -*- |
Christian Egli | 5510e4a | 2009-11-05 09:55:30 +0000 | [diff] [blame] | 2 | |
Christian Egli | f70f4e0 | 2011-01-03 15:09:06 +0000 | [diff] [blame^] | 3 | Copyright (C) 2008, 2009, 2011 ViewPlus Technologies, Inc. and JJB |
Christian Egli | 5510e4a | 2009-11-05 09:55:30 +0000 | [diff] [blame] | 4 | Software, Inc. |
| 5 | |
| 6 | Copying and distribution of this file, with or without modification, |
| 7 | are permitted in any medium without royalty provided the copyright |
| 8 | notice and this notice are preserved. |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 9 | |
| 10 | This file attempts to describe the maintainer-specific notes to follow |
| 11 | when hacking liblouis. |
| 12 | |
Christian Egli | 5510e4a | 2009-11-05 09:55:30 +0000 | [diff] [blame] | 13 | * Developing |
| 14 | ** Where to get it |
| 15 | The development sources are available through anonymous svn at Google |
| 16 | Code: |
| 17 | |
| 18 | http://code.google.com/p/liblouis/ |
| 19 | |
| 20 | ** Build requirements |
| 21 | This distribution uses Automake, Autoconf, and Libtool. If you are |
| 22 | getting the sources from svn (or change configure.ac), you'll need to |
| 23 | have these tools installed to (re)build. Optionally (if you want to |
| 24 | generate man pages) you'll also need help2man. All of these programs |
| 25 | are available from ftp://ftp.gnu.org/gnu. |
| 26 | |
| 27 | ** Gnulib |
| 28 | This distribution also uses Gnulib (http://www.gnu.org/software/gnulib) |
| 29 | to share common files, with the files being checked in to svn. If you |
| 30 | want to update from the current gnulib, install gnulib, and then run |
| 31 | gnulib-tool --import |
| 32 | in the top-level directory. |
| 33 | |
| 34 | For the record, the first time invocation was |
| 35 | gnulib-tool --import --lib=libgnu --source-base=gnulib \ |
| 36 | --m4-base=gnulib/m4 --aux-dir=build-aux --libtool \ |
| 37 | --macro-prefix=gl getopt-gnu progname version-etc |
| 38 | More modules might have been added since. The currently-used gnulib |
| 39 | modules and other gnulib information are recorded in |
| 40 | gnulib/m4/gnulib-cache.m4. Given a source checkout of gnulib, you can |
| 41 | update the files with gnulib-tool --import. |
| 42 | |
| 43 | ** How to build |
Christian Egli | 81b0481 | 2009-11-05 11:07:17 +0000 | [diff] [blame] | 44 | After getting the sources from svn, with |
| 45 | |
| 46 | svn checkout http://liblouis.googlecode.com/svn/trunk/ liblouis |
| 47 | |
| 48 | and installing the tools above, change to the liblouis directory and |
| 49 | and bootstrap the project with the following command |
| 50 | |
| 51 | ./autogen.sh |
| 52 | |
| 53 | to do a fresh build. Then run configure as usual: |
| 54 | |
| 55 | ./configure |
| 56 | |
| 57 | You have the choice to compile liblouis for either 16- or 32-bit |
| 58 | Unicode. By default it is compiled for the former. To get 32-bit |
| 59 | Unicode run configure with --enable-ucs4 . |
| 60 | |
| 61 | After running configure run "make" and then "make install". You must |
| 62 | have root privileges for the installation step. |
Christian Egli | 5510e4a | 2009-11-05 09:55:30 +0000 | [diff] [blame] | 63 | |
Christian Egli | f70f4e0 | 2011-01-03 15:09:06 +0000 | [diff] [blame^] | 64 | ** How to debug |
| 65 | Starting the programs under the tools directory within gdb is a little |
| 66 | tricky as they are linked with libtool. See the info page of libtool |
| 67 | for more information. To start lou_checktable for table wiskunde.ctb |
| 68 | for example you'd have to issue the following commands: |
| 69 | |
| 70 | $ libtool --mode=execute gdb ./tools/lou_checktable |
| 71 | (gdb) run tables/wiskunde.ctb |
| 72 | |
Christian Egli | 35f4aeb | 2010-08-19 11:58:07 +0000 | [diff] [blame] | 73 | ** How to build for win32 |
| 74 | Use the mingw win32 cross compiler as follows: |
| 75 | |
| 76 | ./configure --build i686-pc-linux-gnu --host i586-mingw32msvc |
| 77 | make |
| 78 | |
| 79 | At the moment you need to tweak the source some to get it to work. |
| 80 | Delete the lines AC_FUNC_MALLOC and AC_FUNC_REALLOC from configure.ac |
| 81 | |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 82 | * Release Procedure |
| 83 | These steps describe what a maintainer does to make a release; they |
| 84 | are not needed for ordinary patch submission. |
| 85 | |
| 86 | ** Set the version number |
| 87 | Update the version number in NEWS (with version, date, and release |
| 88 | type), ChangeLog and configure.ac. |
| 89 | |
| 90 | ** Commit and tag |
| 91 | Commit the changes and tag this version |
| 92 | |
| 93 | svn cp https://liblouis.googlecode.com/svn/trunk \ |
| 94 | https://liblouis.googlecode.com/svn/tags/liblouis_1_3_8 |
| 95 | |
| 96 | If you know the exact version number that needs to be tagged use |
| 97 | |
| 98 | svn cp https://liblouis.googlecode.com/svn/trunk \ |
| 99 | https://liblouis.googlecode.com/svn/tags/liblouis_1_3_8 -r 109 |
| 100 | |
| 101 | ** Make the release |
| 102 | Check out a clean copy in a different directory, like /tmp. Run |
| 103 | autogen.sh and configure with no special prefixes. Run make distcheck. |
| 104 | This will make sure that all needed files are present, and do a |
| 105 | general sanity check. Run make dist. This will produce a tarball. |
| 106 | |
Christian Egli | 9a3b3ce | 2009-05-27 13:46:37 +0000 | [diff] [blame] | 107 | ./autogen.sh && ./configure && make && make distcheck && make dist |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 108 | |
| 109 | ** Upload |
| 110 | Upload tarball to Google project page, tag as "featured". This will |
| 111 | put the link on the main project page. Remove "featured" tag from |
| 112 | previous tarball release. |
| 113 | |
Christian Egli | 2ed702e | 2009-03-12 13:06:39 +0000 | [diff] [blame] | 114 | ** Online documentation |
| 115 | The online documentation is hosted out of subversion of the Google |
| 116 | code site. To check it out |
| 117 | |
| 118 | svn co https://liblouis.googlecode.com/svn/documentation \ |
| 119 | liblouis-online-documentation |
| 120 | |
| 121 | then move the latest built documentation into this directory and check |
| 122 | it in |
| 123 | |
| 124 | cd liblouis-online-documentation |
| 125 | cp ../liblouis/doc/liblouis.html . |
| 126 | svn ci liblouis.html -m "Update online documentation" |
| 127 | |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 128 | ** Announce |
| 129 | Send an announcement to the liblouis list |
| 130 | liblouis-liblouisxml@freelists.org. See ANNOUNCEMENT for an example. |
| 131 | |
| 132 | ** Other web updates |
| 133 | Update the Google project page. Add the current NEWS to the front |
| 134 | page. |
| 135 | |
| 136 | Also update the page on freshmeat (http://freshmeat.net/projects/liblouis/). |
| 137 | |
| 138 | |