Changes in / [e4f08bf:c720890]
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
.travis.yml
re4f08bf rc720890 4 4 - ./configure 5 5 - make check 6 - BITLBEE_SKYPE=plugindpkg-buildpackage -uc -us6 - dpkg-buildpackage -uc -us 7 7 8 8 before_install: -
configure
re4f08bf rc720890 79 79 branch=$(cd $srcdir; git rev-parse --abbrev-ref HEAD) 80 80 81 search= '\(.*\)-\([0-9]*\)-\(g[0-9a-f]*\)'81 search="(.+)-([0-9]+)-(g[0-9a-f]+)" 82 82 replace="\1+$timestamp+$branch+\2-\3-git" 83 83 84 describe=$(cd $srcdir; git describe --long --tags 2>/dev/null) 85 if [ $? -ne 0 ]; then 86 describe=${REAL_BITLBEE_VERSION}-0-g$(cd $srcdir; git rev-parse --short HEAD) 87 fi 88 89 BITLBEE_VERSION=$(echo $describe | sed "s#$search#$replace#") 90 91 unset timestamp branch search replace describe 84 BITLBEE_VERSION=$(cd $srcdir; git describe --long --tags | sed -r "s#$search#$replace#") 85 86 unset timestamp branch search replace 92 87 fi 93 88 } … … 685 680 fi 686 681 687 if [ -z "$PYTHON" ]; then688 PYTHON=python689 fi690 691 682 if [ "$doc" = "1" ]; then 692 683 # check this here just in case someone tries to install it in python2.4... 693 if ! $PYTHON-m xml.etree.ElementTree > /dev/null 2>&1; then684 if ! python -m xml.etree.ElementTree > /dev/null 2>&1; then 694 685 echo 695 686 echo 'ERROR: Python (>=2.5 or 3.x) is required to generate docs' 696 echo "(Use the PYTHON environment variable if it's in a weird location)"697 687 exit 1 698 688 fi 699 689 echo "DOC=1" >> Makefile.settings 700 echo "PYTHON=$PYTHON" >> Makefile.settings701 690 fi 702 691 -
debian/control
re4f08bf rc720890 22 22 Architecture: any 23 23 Depends: ${misc:Depends}, ${shlibs:Depends}, debianutils (>= 1.16), bitlbee-common (= ${source:Version}) 24 Provides: bitlbee (= ${source:Version}) 24 25 Conflicts: bitlbee 25 26 Replaces: bitlbee -
doc/Makefile
re4f08bf rc720890 5 5 6 6 all: 7 $(MAKE) -C user-guide 7 # Only build the docs if this is a git tree 8 test ! '(' -d ../.git -o -d ../.bzr ')' || $(MAKE) -C user-guide 8 9 9 10 install: -
doc/user-guide/Makefile
re4f08bf rc720890 3 3 _SRCDIR_ := $(_SRCDIR_)doc/user-guide/ 4 4 endif 5 6 ifndef PYTHON7 PYTHON = python8 endif9 5 10 6 all: help.txt … … 35 31 xsltproc --xinclude --output $@ docbook.xsl $< 36 32 37 help.txt: $(_SRCDIR_)help.xml $(_SRCDIR_)commands.xml $(_SRCDIR_)misc.xml $(_SRCDIR_)quickstart.xml38 $(PYTHON) $(_SRCDIR_)genhelp.py $< $@33 help.txt: help.xml help.xsl commands.xml misc.xml quickstart.xml 34 python genhelp.py $< $@ 39 35 40 36 clean: -
doc/user-guide/genhelp.py
re4f08bf rc720890 3 3 # Usage: python genhelp.py input.xml output.txt 4 4 # (Both python2 (>=2.5) or python3 work) 5 #6 # The shebang above isn't used, set the PYTHON environment variable7 # before running ./configure instead8 5 9 6 # This program is free software; you can redistribute it and/or … … 23 20 24 21 25 import os26 22 import re 27 23 import sys … … 226 222 return 227 223 228 # ensure that we really are in the same directory as the input file229 os.chdir(os.path.dirname(os.path.abspath(sys.argv[1])))230 231 224 txt = process_file(sys.argv[1]) 232 225 open(sys.argv[2], "w").write(txt) -
lib/misc.c
re4f08bf rc720890 751 751 return end - string; 752 752 } 753 754 /* Parses a guint64 from string, returns TRUE on success */755 gboolean parse_int64(char *string, int base, guint64 *number)756 {757 guint64 parsed;758 char *endptr;759 760 errno = 0;761 parsed = g_ascii_strtoull(string, &endptr, base);762 if (errno || endptr == string || *endptr != '\0') {763 return FALSE;764 }765 *number = parsed;766 return TRUE;767 }768 -
lib/misc.h
re4f08bf rc720890 149 149 G_MODULE_EXPORT char *get_rfc822_header(const char *text, const char *header, int len); 150 150 G_MODULE_EXPORT int truncate_utf8(char *string, int maxlen); 151 G_MODULE_EXPORT gboolean parse_int64(char *string, int base, guint64 *number);152 151 153 152 #endif -
nick.c
re4f08bf rc720890 186 186 LC_CTYPE being set to something other than C/POSIX. */ 187 187 if (!(irc && irc->status & IRC_UTF8_NICKS)) { 188 asc = g_convert_with_fallback(part, -1, "ASCII//TRANSLIT", "UTF-8", "", NULL, NULL, NULL); 189 190 if (!asc) { 191 /* If above failed, try again without //TRANSLIT. 192 //TRANSLIT is a GNU iconv special and is not POSIX. 193 Other platforms may not support it. */ 194 asc = g_convert_with_fallback(part, -1, "ASCII", "UTF-8", "", NULL, NULL, NULL); 195 } 196 197 part = asc; 188 part = asc = g_convert_with_fallback(part, -1, "ASCII//TRANSLIT", 189 "UTF-8", "", NULL, NULL, NULL); 198 190 } 199 191 -
protocols/skype/Makefile
re4f08bf rc720890 19 19 install-doc: 20 20 $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1 21 $(INSTALL) -m644 $(_SRCDIR_)skyped.1 $(DESTDIR)$(MANDIR)/man121 $(INSTALL) -m644 skyped.1 $(DESTDIR)$(MANDIR)/man1 22 22 23 23 uninstall-doc: -
protocols/twitter/twitter.c
re4f08bf rc720890 469 469 g_regex_match(regex, msg, 0, &match_info); 470 470 while (g_match_info_matches(match_info)) { 471 gchar *s, *url; 472 473 url = g_match_info_fetch(match_info, 2); 471 gchar *url = g_match_info_fetch(match_info, 2); 474 472 url_len_diff += target_len - g_utf8_strlen(url, -1); 475 476 473 /* Add another character for https://t.co/... URLs */ 477 if ( (s = g_match_info_fetch(match_info, 3))) {474 if (g_match_info_fetch(match_info, 3) != NULL) { 478 475 url_len_diff += 1; 479 g_free(s);480 476 } 481 477 g_free(url); … … 863 859 } 864 860 861 /* Parses a decimal or hex tweet ID, returns TRUE on success */ 862 static gboolean twitter_parse_id(char *string, int base, guint64 *id) 863 { 864 guint64 parsed; 865 char *endptr; 866 867 errno = 0; 868 parsed = g_ascii_strtoull(string, &endptr, base); 869 if (errno || endptr == string || *endptr != '\0') { 870 return FALSE; 871 } 872 *id = parsed; 873 return TRUE; 874 } 875 865 876 bee_user_t twitter_log_local_user; 866 877 … … 892 903 arg++; 893 904 } 894 if ( parse_int64(arg, 16, &id) && id < TWITTER_LOG_LENGTH) {905 if (twitter_parse_id(arg, 16, &id) && id < TWITTER_LOG_LENGTH) { 895 906 bu = td->log[id].bu; 896 907 id = td->log[id].id; 897 } else if ( parse_int64(arg, 10, &id)) {908 } else if (twitter_parse_id(arg, 10, &id)) { 898 909 /* Allow normal tweet IDs as well; not a very useful 899 910 feature but it's always been there. Just ignore -
sock.h
re4f08bf rc720890 9 9 #define sock_make_nonblocking(fd) fcntl(fd, F_SETFL, O_NONBLOCK) 10 10 #define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0) 11 #define sockerr_again() (errno == EINPROGRESS || errno == EINTR || errno == EAGAIN)11 #define sockerr_again() (errno == EINPROGRESS || errno == EINTR) 12 12 void closesocket(int fd);
Note: See TracChangeset
for help on using the changeset viewer.