summary refs log tree commit diff stats
path: root/plugins/Make.plugin
blob: 4a4c56fde6a8a64386239baf772ccff43ec04560 (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
30
31
32
33
34
35
36
37
38
# Makefile stub for creating standalone plugin distributions.

plugin_dist: pg_dist pg_dist/config.status
	pgi=`cd $(srcdir)/.. && pwd`; cd pg_dist; \
		$(MAKE) $(AM_MAKEFLAGS) PLUGIN_INCLUDES=-I$$pgi distcheck dist

pg_dist: pg_distdir pg_dist/configure.in pg_dist/install-sh
	cd pg_dist \
	&& libtoolize --copy --force --automake \
	&& automake --copy --add-missing --foreign \
	&& autoconf -l ../$(top_srcdir)

pg_distdir: $(DISTFILES)
	test -d pg_dist || mkdir pg_dist
	for dfile in $(DISTFILES); do \
		test -f $$dfile && cp $$dfile pg_dist \
		|| test -f $(srcdir)/$$dfile && cp $(srcdir)/$$dfile pg_dist; done
	sed '/Make.plugin/d' < $(srcdir)/Makefile.am > pg_dist/Makefile.am

pg_dist/configure.in: $(srcdir)/../plugin-conf.in
	rm -f pg_dist/configure.in
	test -f $(srcdir)/config.stub \
	&& cat $(srcdir)/config.stub > pg_dist/configure.in || true
	cat $(srcdir)/../plugin-conf.in | \
		sed 's%@PLUGIN_VERSION@%$(PLUGIN_VERSION)%; \
		s%@PLUGIN@%$(PLUGIN)%' >> pg_dist/configure.in

pg_dist/install-sh: pg_distdir
	cp $(top_srcdir)/install-sh pg_dist

pg_dist/config.status: pg_dist/configure
	cd pg_dist \
	&& test -f config.status && $(SHELL) ./config.status --recheck \
	|| $(SHELL) ./configure --enable-maintainer-mode

DISTCLEANFILES = pg_dist/* pg_dist

#
on/util.h?id=132ef6cb50201cb6ab8ab0609a88ccce62aa6a21'>132ef6cb ^
e9a3528b ^
a903f16c ^


a1a94ed3 ^
af248ce2 ^
dc276402 ^
4a6ceffb ^
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84


















                                                                            












                                                                           

                      




                                                           










                                                                                  
                                 
                                 









                                                                  

                                                           
                        


                                                                       
                                    
                                                                               



                                                                                         
                                
                     
                  


                                                                     
                                                                               
                                                                                                   
                                                                                    
      
/* HexChat
 * Copyright (C) 1998-2010 Peter Zelezny.
 * Copyright (C) 2009-2013 Berke Viktor.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

/************************************************************************
 *    This technique was borrowed in part from the source code to 
 *    ircd-hybrid-5.3 to implement case-insensitive string matches which
 *    are fully compliant with Section 2.2 of RFC 1459, the copyright
 *    of that code being (C) 1990 Jarkko Oikarinen and under the GPL.
 *    
 *    A special thanks goes to Mr. Okarinen for being the one person who
 *    seems to have ever noticed this section in the original RFC and
 *    written code for it.  Shame on all the rest of you (myself included).
 *    
 *        --+ Dagmar d'Surreal
 */

#ifndef HEXCHAT_UTIL_H
#define HEXCHAT_UTIL_H

#define rfc_tolower(c) (rfc_tolowertab[(unsigned char)(c)])

extern const unsigned char rfc_tolowertab[];

char *expand_homedir (char *file);
void path_part (char *file, char *path, int pathlen);
int match (const char *mask, const char *string);
char *file_part (char *file);
void for_files (char *dirname, char *mask, void callback (char *file));
int rfc_casecmp (const char *, const char *);
int rfc_ncasecmp (char *, char *, int);
int buf_get_line (char *, char **, int *, int len);
char *nocasestrstr (const char *text, const char *tofind);
char *country (char *);
void country_search (char *pattern, void *ud, void (*print)(void *, char *, ...));
char *get_sys_str (int with_cpu);
void util_exec (const char *cmd);
#define STRIP_COLOR 1
#define STRIP_ATTRIB 2
#define STRIP_HIDDEN 4
#define STRIP_ESCMARKUP 8
#define STRIP_ALL 7
gchar *strip_color (const char *text, int len, int flags);
int strip_color2 (const char *src, int len, char *dst, int flags);
int strip_hidden_attribute (char *src, char *dst);
char *errorstring (int err);
int waitline (int sok, char *buf, int bufsize, int);
#ifdef WIN32
int waitline2 (GIOChannel *source, char *buf, int bufsize);
int get_cpu_arch (void);
#else
#define waitline2(source,buf,size) waitline(serv->childread,buf,size,0)
#endif
unsigned long make_ping_time (void);
void move_file (char *src_dir, char *dst_dir, char *fname, int dccpermissions);
int token_foreach (char *str, char sep, int (*callback) (char *str, void *ud), void *ud);
guint32 str_hash (const char *key);
guint32 str_ihash (const unsigned char *key);
void safe_strcpy (char *dest, const char *src, int bytes_left);
void canonalize_key (char *key);
int portable_mode ();
int unity_mode ();
char *encode_sasl_pass_plain (char *user, char *pass);
char *encode_sasl_pass_blowfish (char *user, char *pass, char *data);
char *encode_sasl_pass_aes (char *user, char *pass, char *data);
char *challengeauth_response (char *username, char *password, char *challenge);
size_t strftime_validated (char *dest, size_t destsize, const char *format, const struct tm *time);
size_t strftime_utf8 (char *dest, size_t destsize, const char *format, time_t time);
#endif