Now that people can use Tino's new apt packages to install recent versions of apertium/lttoolbox, they may want to combine those with language pairs from SVN. Then apertium will install to the /usr prefix while pairs install to /usr/local (by default; some prefer e.g. $HOME/local), but apertium-gen-modes currently hardcodes its own prefix into the modes files, so people will end up with only error messages about missing files if they try installing SVN pairs when using the apt repo: https://sourceforge.net/p/apertium/tickets/52/
I made a fix for this at https://github.com/unhammer/apertium/compare/47b215f...gen-modes-installdir Now if you give apertium-gen-modes three arguments, the third one is the installation directory for language pairs. It's still backwards compatible with the two- and one-argument calls that current Makefiles use. You can test with $ git clone -b gen-modes-installdir https://github.com/unhammer/apertium $ cd apertium $ ./autogen.sh && make && sudo make install I've tested backwards compatibility with e.g. en-es and pt-gl, they work just as before, and I've tested that the new feature works with nno-nob (pairs using apertium.m4 don't need any makefile changes to use the new feature). If no one objects I'll just go ahead and commit this :-) -- Kevin Brubeck Unhammer GPG: 0x766AC60C
signature.asc
Description: PGP signature
------------------------------------------------------------------------------
_______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
