Greg Kroah-Hartman [Wed, 19 May 2010 18:53:42 +0000 (11:53 -0700)]
add a configfile option to the core data structure
In anticipation of adding the option to select where your config
file is at.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman [Wed, 19 May 2010 18:45:44 +0000 (11:45 -0700)]
init the readline function after parsing the command line options
This lets us properly debug the readline function choice if
we need to.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman [Fri, 23 Apr 2010 03:28:13 +0000 (20:28 -0700)]
update bti.1 from the xml changes
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Reuben Thomas [Thu, 15 Apr 2010 11:14:52 +0000 (12:14 +0100)]
Typo fixes for bti(1)
Greg Kroah-Hartman [Thu, 22 Apr 2010 19:06:50 +0000 (12:06 -0700)]
another minor codingstyle fix
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman [Thu, 22 Apr 2010 19:06:30 +0000 (12:06 -0700)]
updated version of checkpatch.pl
taken from Linux 2.6.34-rc5
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman [Thu, 22 Apr 2010 19:04:43 +0000 (12:04 -0700)]
minor coding style cleanup.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Pete Zaitcev [Mon, 12 Apr 2010 18:49:57 +0000 (12:49 -0600)]
bti: fix a crash for echo -n|bti
My previous patch was not thought out completely and so the new bti
crashes if fed an input without a newline, like this:
echo -n "status test" | bti
The obvious fix seems the most appropriate approach in this case.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Pete Zaitcev [Sun, 21 Mar 2010 20:46:03 +0000 (14:46 -0600)]
bti: suppress prompt if fed from a pipe
Do not use readline for non-interactive sessions (e.g. those taking
input from a pipe or file). This way stray prompts are not shown.
Explicit prompts are retained, in case some script expects them.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman [Sat, 9 Jan 2010 23:22:17 +0000 (15:22 -0800)]
release 025
Greg Kroah-Hartman [Sat, 9 Jan 2010 23:17:16 +0000 (15:17 -0800)]
Remove link-time dependancy on readline
This patch divorces bti from depending on readline. It now
will try to work with any readline-like library on your system,
and if none is found, fall back to an internal function.
This will solve the problems that distros are having with the
readline-6 license change to GPLv3 and bti staying at GPLv2.
Logic for this is taken from e2fsprogs, which implemented this
a long time ago for the same type of reason.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
gregor herrmann [Thu, 31 Dec 2009 02:41:50 +0000 (03:41 +0100)]
Name correct hosts in prompts.
The prompt "Enter twitter {account,password}" is a bit misleading
if host is set to identi.ca or a custim host.
Add hostname to the session struct and use in for prompting and logging.
Reported as http://bugs.debian.org/563099
Amir Mohammad Saied [Thu, 31 Dec 2009 10:39:25 +0000 (14:09 +0330)]
Merge remote branch 'gregkh/master'
Amir Mohammad Saied [Thu, 31 Dec 2009 10:37:05 +0000 (14:07 +0330)]
Removing explicit mentions of twitter
Amir Mohammad Saied [Thu, 31 Dec 2009 10:24:36 +0000 (13:54 +0330)]
If there's no host specified, the session host is already pointing to twitter, but hosturl is empty
Greg Kroah-Hartman [Wed, 2 Dec 2009 01:41:36 +0000 (17:41 -0800)]
release 024
Greg Kroah-Hartman [Wed, 2 Dec 2009 01:15:30 +0000 (17:15 -0800)]
use "quiet" mode of building if present.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman [Wed, 2 Dec 2009 01:10:52 +0000 (17:10 -0800)]
fix up some compiler warnings in read_password
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Ben Boeckel [Tue, 1 Dec 2009 23:59:45 +0000 (18:59 -0500)]
Disable echo when reading the password
Greg Kroah-Hartman [Thu, 13 Aug 2009 18:07:24 +0000 (11:07 -0700)]
fix crash when --debug is set
The group should not be printed out at startup if debug is set,
as it is not always set. This came in in the "add group support"
patch, it was probably used for debugging that code.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman [Thu, 13 Aug 2009 04:23:49 +0000 (21:23 -0700)]
don't free an array on the stack
Greg Kroah-Hartman [Thu, 13 Aug 2009 04:13:03 +0000 (21:13 -0700)]
more coding style cleanups
Greg Kroah-Hartman [Thu, 13 Aug 2009 04:09:22 +0000 (21:09 -0700)]
clean up some trailing whitespace
gregor herrmann [Tue, 30 Jun 2009 17:28:24 +0000 (19:28 +0200)]
BTI should not display password while user types it
Add password handling logic to not display the password on the
command line. Code is based on logic from:
http://dev.kryo.se/iodine/browser/src/common.c
Greg Kroah-Hartman [Thu, 13 Aug 2009 03:53:19 +0000 (20:53 -0700)]
fix compiler warning about fprintf
Marvin Vek [Wed, 22 Jul 2009 21:07:14 +0000 (23:07 +0200)]
Add laconica group support
As you offered on Identi.ca in reply to my question on Laconica group
support (http://identi.ca/notice/
6205615), created a patch for it.
Been like 6 years when i learned and wrote my last basic C code, but
tested it out and seems to be working fine.
Signed-off-by: Marvin Vek <laen@onedot.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman [Wed, 27 May 2009 20:45:53 +0000 (13:45 -0700)]
release 023
Amir Mohammad Saied [Wed, 27 May 2009 18:02:06 +0000 (22:32 +0430)]
Updating AUTHORs and copyright section
Amir Mohammad Saied [Thu, 21 May 2009 09:53:37 +0000 (14:23 +0430)]
Updating documents, both for the new verbose mode, and custom laconi.ca installations.
Amir Mohammad Saied [Wed, 20 May 2009 07:14:32 +0000 (11:44 +0430)]
verbose option for bash completion script
Amir Mohammad Saied [Tue, 19 May 2009 14:33:07 +0000 (19:03 +0430)]
Verbose mode for bti
Amir Mohammad Saied [Sun, 10 May 2009 11:18:55 +0000 (15:48 +0430)]
https for twitter
Greg Kroah-Hartman [Tue, 5 May 2009 06:17:45 +0000 (23:17 -0700)]
release 022
Greg Kroah-Hartman [Tue, 5 May 2009 06:03:32 +0000 (23:03 -0700)]
Merge branch 'master' of git://github.com/amir/bti
gregor herrmann [Mon, 4 May 2009 14:39:48 +0000 (16:39 +0200)]
bti: use ssl for identi.ca
Greg Kroah-Hartman [Tue, 5 May 2009 05:49:48 +0000 (22:49 -0700)]
Merge branch 'master' of gregkh@/linux/kernel/git/gregkh/bti
Greg Kroah-Hartman [Tue, 5 May 2009 05:49:21 +0000 (22:49 -0700)]
fix build warning from time patch.
J.R. Mauro [Thu, 30 Apr 2009 00:35:19 +0000 (20:35 -0400)]
bti: show timestamp in statuses
Make parse_statuses() print timestamps
Signed-off-by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Amir Mohammad Saied [Mon, 4 May 2009 06:43:07 +0000 (11:13 +0430)]
Updating config example file
Amir Mohammad Saied [Mon, 4 May 2009 06:24:26 +0000 (10:54 +0430)]
Support for custom bti installations
Now one can pass the URL of a custom laconica installation as value of
host (the both previous "twitter" and "identica" are still valid
though). The passed URL should be the base path of where API endpoints
are located. e.g., identica' baseurl is:
http://identi.ca/api/statuses
And twit.tv's army (which is a laconica instance) is:
http://army.twit.tv/api/statuses
Greg Kroah-Hartman [Tue, 14 Apr 2009 21:03:49 +0000 (14:03 -0700)]
add the script to the tarball.
Greg Kroah-Hartman [Tue, 14 Apr 2009 21:01:35 +0000 (14:01 -0700)]
release 021
Greg Kroah-Hartman [Tue, 14 Apr 2009 21:01:06 +0000 (14:01 -0700)]
bump version to 021
Greg Kroah-Hartman [Tue, 14 Apr 2009 20:59:11 +0000 (13:59 -0700)]
Install bti-shrink-urls properly
Greg Kroah-Hartman [Tue, 14 Apr 2009 20:01:22 +0000 (13:01 -0700)]
fix build of man pages
Thanks to gregor herrmann for pointing out the error
Greg Kroah-Hartman [Tue, 14 Apr 2009 03:13:25 +0000 (20:13 -0700)]
release 020
Greg Kroah-Hartman [Tue, 14 Apr 2009 03:12:19 +0000 (20:12 -0700)]
add more forgotten files to Makefile.am
Greg Kroah-Hartman [Mon, 13 Apr 2009 23:00:11 +0000 (16:00 -0700)]
bump version number
Greg Kroah-Hartman [Mon, 13 Apr 2009 22:59:16 +0000 (15:59 -0700)]
fix two compiler warnings.
Greg Kroah-Hartman [Mon, 13 Apr 2009 22:56:23 +0000 (15:56 -0700)]
release 019
Greg Kroah-Hartman [Mon, 13 Apr 2009 22:55:48 +0000 (15:55 -0700)]
Makefile.am and configure.ac tweaks to get the release correct
Greg Kroah-Hartman [Mon, 13 Apr 2009 22:52:14 +0000 (15:52 -0700)]
release 018
Greg Kroah-Hartman [Mon, 13 Apr 2009 22:52:06 +0000 (15:52 -0700)]
another git-release fix
Greg Kroah-Hartman [Mon, 13 Apr 2009 22:51:12 +0000 (15:51 -0700)]
remove Makefile and fix git-release script
Greg Kroah-Hartman [Mon, 13 Apr 2009 22:48:40 +0000 (15:48 -0700)]
more autoconf fun
Greg Kroah-Hartman [Mon, 13 Apr 2009 22:21:37 +0000 (15:21 -0700)]
convert to use autotools
Greg Kroah-Hartman [Mon, 13 Apr 2009 20:31:32 +0000 (13:31 -0700)]
add bti-shrink-urls.1 to tree
This helps for systems that don't have the xml2 package on it.
Greg Kroah-Hartman [Mon, 13 Apr 2009 20:31:11 +0000 (13:31 -0700)]
added AUTHOR section to bti-shrink-urls.xml
xml2man complains if it is not there.
Greg Kroah-Hartman [Mon, 13 Apr 2009 20:29:18 +0000 (13:29 -0700)]
added bti-shrink-urls.1 to Makefile
Greg Kroah-Hartman [Mon, 13 Apr 2009 20:28:12 +0000 (13:28 -0700)]
added bti-shrink-urls man page
Thanks to Gregor Herrmann <gregoa@debian.org> for the file
Gregor Herrmann [Mon, 13 Apr 2009 20:26:39 +0000 (13:26 -0700)]
add missing arguments to getopt_long_only call and add --dry-run to --help
Alexander Færøy [Thu, 9 Apr 2009 01:42:13 +0000 (03:42 +0200)]
Use '#' as prefix for our tweets if we're uid 0; otherwise '$'.
Greg Kroah-Hartman [Mon, 13 Apr 2009 19:56:10 +0000 (12:56 -0700)]
show version when starting up with debug enabled
This makes it easier to determine which version of bti is being used
when responding to bug reports.
Greg Kroah-Hartman [Mon, 13 Apr 2009 19:55:41 +0000 (12:55 -0700)]
add "bti:" to the beginning of all debug messages
This makes it a bit easier to parse what is going on.
Greg Kroah-Hartman [Tue, 24 Mar 2009 05:19:48 +0000 (22:19 -0700)]
release 017
Greg Kroah-Hartman [Tue, 24 Mar 2009 05:17:36 +0000 (22:17 -0700)]
update bti.1
Greg Kroah-Hartman [Tue, 24 Mar 2009 05:05:57 +0000 (22:05 -0700)]
add --page to bti-bashcompletion
Greg Kroah-Hartman [Tue, 24 Mar 2009 04:59:54 +0000 (21:59 -0700)]
document the --page option
Greg Kroah-Hartman [Tue, 24 Mar 2009 04:52:37 +0000 (21:52 -0700)]
Merge branch 'master' of git://github.com/psykoyiko/bti
Greg Kroah-Hartman [Tue, 24 Mar 2009 04:47:45 +0000 (21:47 -0700)]
Lots of checkpatch cleanups to the code
Bart Trojanowski [Tue, 24 Mar 2009 00:12:05 +0000 (20:12 -0400)]
fix a bug with shrink_urls() when ran on text that contains no urls
Greg Kroah-Hartman [Mon, 23 Mar 2009 23:03:14 +0000 (16:03 -0700)]
release 016
Greg Kroah-Hartman [Mon, 23 Mar 2009 22:55:06 +0000 (15:55 -0700)]
update bti.1 with new info from xml file
Greg Kroah-Hartman [Mon, 23 Mar 2009 22:54:35 +0000 (15:54 -0700)]
add new options to bash completion script
Greg Kroah-Hartman [Mon, 23 Mar 2009 22:54:19 +0000 (15:54 -0700)]
fix up some compiler warnings due to new patches
Bart Trojanowski [Mon, 23 Mar 2009 20:05:52 +0000 (16:05 -0400)]
bti-shrink-urls - properly handle urls with :
Bart Trojanowski [Mon, 23 Mar 2009 00:52:45 +0000 (20:52 -0400)]
fix an array overrun in shrink_urls()
Bart Trojanowski [Mon, 23 Mar 2009 00:12:58 +0000 (20:12 -0400)]
bti.xml and bti.example updates
Signed-off-by: Bart Trojanowski <bart@jukie.net>
Bart Trojanowski [Sun, 22 Mar 2009 15:49:52 +0000 (11:49 -0400)]
add bti --dry-run option
Signed-off-by: Bart Trojanowski <bart@jukie.net>
Bart Trojanowski [Sat, 21 Mar 2009 00:48:40 +0000 (20:48 -0400)]
add bti --shrink-urls
This patch adds a bti-shrink-urls script which uses http://2tu.us/ to
convert any URLs to something more sensible for a tweet.
bti, with the --shrink-urls option, now uses the above to convert any
URLs it finds.
'shrink-urls' can also be set to 'true' or 'yes' in the config file.
Signed-off-by: Bart Trojanowski <bart@jukie.net>
Bart Trojanowski [Fri, 20 Mar 2009 00:15:14 +0000 (20:15 -0400)]
add make install target
Also adds DEST and PREFIX variables used by make install, for example:
make install DEST=`pwd`/debian/tmp PREFIX=/usr/bin
Dave Barry [Mon, 16 Mar 2009 06:38:08 +0000 (23:38 -0700)]
Add support for api page numbers in read mode
Greg Kroah-Hartman [Wed, 11 Mar 2009 20:13:23 +0000 (13:13 -0700)]
release 015
Greg Kroah-Hartman [Wed, 11 Mar 2009 20:09:42 +0000 (13:09 -0700)]
fix readline mess when in --bash mode
Turns out it was echoing stdin to stdout, which is annoying, you
end up seeing everything that you just typed.
Amir Mohammad Saied [Sat, 7 Mar 2009 15:13:41 +0000 (18:43 +0330)]
Fixing an assignment issue
Amir Mohammad Saied [Thu, 5 Mar 2009 08:29:27 +0000 (11:59 +0330)]
Handling unknown actions
Amir Mohammad Saied [Thu, 5 Mar 2009 07:34:11 +0000 (11:04 +0330)]
Updating documents
Amir Mohammad Saied [Wed, 4 Mar 2009 11:17:35 +0000 (14:47 +0330)]
logging more
Amir Mohammad Saied [Wed, 4 Mar 2009 08:43:45 +0000 (12:13 +0330)]
Updating bashcompletion and example config file for new actions
Amir Mohammad Saied [Wed, 4 Mar 2009 08:40:51 +0000 (12:10 +0330)]
Replies action
Now one can track replies to his posts
Amir Mohammad Saied [Wed, 4 Mar 2009 07:59:37 +0000 (11:29 +0330)]
User action
This lets one to track an specified user's timeline.
Greg Kroah-Hartman [Tue, 3 Mar 2009 16:44:54 +0000 (08:44 -0800)]
Change the formatting of --action output
Now it is:
[username] message
instead of:
message [username]
which makes it a bit easier to read and parse
Amir Mohammad Saied [Sun, 15 Feb 2009 06:50:45 +0000 (10:20 +0330)]
Added action option in example bti config file
Amir Mohammad Saied [Sun, 15 Feb 2009 06:48:17 +0000 (10:18 +0330)]
action and values for bash completion
Amir Mohammad Saied [Sun, 15 Feb 2009 06:47:40 +0000 (10:17 +0330)]
libxml2 libs and cflags
Amir Mohammad Saied [Sun, 15 Feb 2009 06:44:21 +0000 (10:14 +0330)]
Actions support for bti
This commit introduces a new set of actions for bti. Now one can track
her friend's and public timeline, as well as updating her status. It
means one can see her friends latest tweets, or track what's up in
public timeline.
There's also a new option called "action", various values are "update",
"friends" and "public". The "update" and "friends" options require
authentication, but public does not.
This commit also introduces a new dependency, libxml2.
Greg Kroah-Hartman [Sat, 14 Feb 2009 06:28:37 +0000 (22:28 -0800)]
release 014
Greg Kroah-Hartman [Sat, 14 Feb 2009 06:27:11 +0000 (22:27 -0800)]
Fix readline bug(s)
Greg Kroah-Hartman [Wed, 4 Feb 2009 17:58:58 +0000 (09:58 -0800)]
release 013
Greg Kroah-Hartman [Wed, 4 Feb 2009 17:57:42 +0000 (09:57 -0800)]
don't duplicate string on password or account prompt