summary refs log tree commit diff stats
path: root/data/misc/Makefile.am
blob: 9413818565d5804e9cad383ddea46f3d8fce6af2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
appdata_in_files = hexchat.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdatadir = $(datadir)/appdata
@INTLTOOL_XML_RULE@

data_desktopdir = $(datadir)/applications
data_desktop_in_files = hexchat.desktop.in

if WITH_TM
data_desktop_in_files += htm.desktop.in
mime_DATA = htm-mime.xml
mimedir = $(datadir)/mime/packages
endif

data_desktop_DATA = $(data_desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

UPDATE_MIME_DATABASE = update-mime-database "$(datadir)/mime" || :
UPDATE_DESKTOP_DATABASE = update-desktop-database -q "$(datadir)/applications" || :

install-data-hook:
	$(UPDATE_MIME_DATABASE);
	$(UPDATE_DESKTOP_DATABASE);

uninstall-hook:
	$(UPDATE_MIME_DATABASE);
	$(UPDATE_DESKTOP_DATABASE);

CLEANFILES = $(appdata_DATA) $(data_desktop_DATA)
GTK+ 2.10 * GLib 2.12 HexChat is known to work on, at least: * Windows XP/Vista/7/8 * Linux * FreeBSD * OpenBSD * NetBSD * Solaris * AIX * IRIX * DEC/Compaq Tru64 UNIX * HP-UX 10.20 and 11 * OS X ## Notes for packagers: If you need your packages to work on i386, you don't need to compile with --disable-mmx, because it's also checked at run-time. ## Python Scripts: Scripts for XChat 1.8.x are not compatible, a brand new interface has been written. For more info, see the [HexChat Python Interface](https://github.com/hexchat/hexchat/blob/master/share/doc/python.md). Consider using the Python interface for your scripts, it's a very nice API, allows for loading/unloading individual scripts, and gives you almost all the features of the C-Plugin API. ## Perl Scripts: Perl 5.8 or newer is required. For more info, see the [HexChat Perl Interface](https://github.com/hexchat/hexchat/blob/master/share/doc/perl.md). Scripts for XChat 1.8.x are compatible with the following exceptions: * IRC::command will not interpret %C, %B, %U etc. * user_list and user_list_short: If a user has both op and voice, only the op flag will be 1. * add_user_list/sub_user_list/clear_user_list These functions do nothing. * notify_list Not implemented. Always returns an empty list. * server_list Lists servers that are not connected aswell. * Some print events may have new names and some were added. * Text printed by scripts must now be UTF8. * Text passed to scripts (via add_message_handler) will be encoded in UTF8. ## Autoloading Scripts and Plugins: The root of your HexChat config is: * Windows: %APPDATA%\HexChat * Unix: ~/.config/hexchat Referred to as <config> from now. HexChat automatically loads, at startup: * <config>/addons/*.lua Lua scripts * <config>/addons/*.pl Perl scripts * <config>/addons/*.py Python scripts * <config>/addons/*.tcl Tcl scripts * <config>/addons/*.dll Plugins (Windows) * <config>/addons/*.so Plugins (Unix) ## Control Codes: * %% - A single percentage sign * %C - Control-C (mIRC color code) * %B - Bold Text * %U - Underline Text * %R - Reverse Text * %O - Reset all Text attributes * %XXX - ASCII XXX (where XXX is a decimal 3 digit number, e.g.: %007 sends a BEEP) %Cforeground,background will produce a color code, e.g.: %C03,10 These are now disabled by default (see Settings > Preferences > Input Box). Instead you can insert the real codes via ctrl-k, ctrl-b and ctrl-o.