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 |
Christian Egli | 81b0481 | 2009-11-05 11:07:17 +0000 | [diff] [blame] | 45 | After getting the sources from svn, with |
| 46 | |
| 47 | svn checkout http://liblouis.googlecode.com/svn/trunk/ liblouis |
| 48 | |
| 49 | and installing the tools above, change to the liblouis directory and |
| 50 | and bootstrap the project with the following command |
| 51 | |
| 52 | ./autogen.sh |
| 53 | |
| 54 | to do a fresh build. Then run configure as usual: |
| 55 | |
| 56 | ./configure |
| 57 | |
| 58 | You have the choice to compile liblouis for either 16- or 32-bit |
| 59 | Unicode. By default it is compiled for the former. To get 32-bit |
| 60 | Unicode run configure with --enable-ucs4 . |
| 61 | |
| 62 | After running configure run "make" and then "make install". You must |
| 63 | have root privileges for the installation step. |
Christian Egli | 5510e4a | 2009-11-05 09:55:30 +0000 | [diff] [blame] | 64 | |
Christian Egli | 35f4aeb | 2010-08-19 11:58:07 +0000 | [diff] [blame] | 65 | ** How to build for win32 |
| 66 | Use the mingw win32 cross compiler as follows: |
| 67 | |
| 68 | ./configure --build i686-pc-linux-gnu --host i586-mingw32msvc |
| 69 | make |
| 70 | |
| 71 | At the moment you need to tweak the source some to get it to work. |
| 72 | Delete the lines AC_FUNC_MALLOC and AC_FUNC_REALLOC from configure.ac |
| 73 | |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 74 | * Release Procedure |
| 75 | These steps describe what a maintainer does to make a release; they |
| 76 | are not needed for ordinary patch submission. |
| 77 | |
| 78 | ** Set the version number |
| 79 | Update the version number in NEWS (with version, date, and release |
| 80 | type), ChangeLog and configure.ac. |
| 81 | |
| 82 | ** Commit and tag |
| 83 | Commit the changes and tag this version |
| 84 | |
| 85 | svn cp https://liblouis.googlecode.com/svn/trunk \ |
| 86 | https://liblouis.googlecode.com/svn/tags/liblouis_1_3_8 |
| 87 | |
| 88 | If you know the exact version number that needs to be tagged use |
| 89 | |
| 90 | svn cp https://liblouis.googlecode.com/svn/trunk \ |
| 91 | https://liblouis.googlecode.com/svn/tags/liblouis_1_3_8 -r 109 |
| 92 | |
| 93 | ** Make the release |
| 94 | Check out a clean copy in a different directory, like /tmp. Run |
| 95 | autogen.sh and configure with no special prefixes. Run make distcheck. |
| 96 | This will make sure that all needed files are present, and do a |
| 97 | general sanity check. Run make dist. This will produce a tarball. |
| 98 | |
Christian Egli | 9a3b3ce | 2009-05-27 13:46:37 +0000 | [diff] [blame] | 99 | ./autogen.sh && ./configure && make && make distcheck && make dist |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 100 | |
| 101 | ** Upload |
| 102 | Upload tarball to Google project page, tag as "featured". This will |
| 103 | put the link on the main project page. Remove "featured" tag from |
| 104 | previous tarball release. |
| 105 | |
Christian Egli | 2ed702e | 2009-03-12 13:06:39 +0000 | [diff] [blame] | 106 | ** Online documentation |
| 107 | The online documentation is hosted out of subversion of the Google |
| 108 | code site. To check it out |
| 109 | |
| 110 | svn co https://liblouis.googlecode.com/svn/documentation \ |
| 111 | liblouis-online-documentation |
| 112 | |
| 113 | then move the latest built documentation into this directory and check |
| 114 | it in |
| 115 | |
| 116 | cd liblouis-online-documentation |
| 117 | cp ../liblouis/doc/liblouis.html . |
| 118 | svn ci liblouis.html -m "Update online documentation" |
| 119 | |
Christian Egli | eddc466 | 2009-03-09 13:27:20 +0000 | [diff] [blame] | 120 | ** Announce |
| 121 | Send an announcement to the liblouis list |
| 122 | liblouis-liblouisxml@freelists.org. See ANNOUNCEMENT for an example. |
| 123 | |
| 124 | ** Other web updates |
| 125 | Update the Google project page. Add the current NEWS to the front |
| 126 | page. |
| 127 | |
| 128 | Also update the page on freshmeat (http://freshmeat.net/projects/liblouis/). |
| 129 | |
| 130 | |