Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8191caa
write status update and direct message with json url
paulrho Jun 21, 2013
a8bec22
include JSON library
paulrho Jun 21, 2013
23198fb
another json pre10 issue to work around
paulrho Jun 21, 2013
6fc8a93
Enable showing timeline: friends, user
paulrho Jun 22, 2013
a02c8ea
fix up coding style differences generated in the json parsing functions
gregkh Jun 27, 2013
27d6caa
release 033
gregkh Jun 27, 2013
7dc7db4
use -EIO instead of -EREMOTEIO
gregkh Jun 28, 2013
97903ba
Build against the new JSON-C library name.
Dec 5, 2013
8fd61f7
dry-run shouldn't error out.
gregkh Jan 8, 2014
8049a74
remove identi.ca support.
gregkh Jan 8, 2014
95fb051
Remove unused xml parsing function
gregkh Jan 8, 2014
6809de3
change remaining http:// to https://
eddelbuettel Jan 15, 2014
0620029
Merge pull request #32 from eddelbuettel/master
gregkh Jan 15, 2014
c794380
.gitignore: add compile to the list of things to ignore
gregkh Jan 15, 2014
a74ccf3
release 034
gregkh Jan 15, 2014
cf41c79
add NOTES file so I can remember to run kup
gregkh Jan 17, 2014
814d874
add .tar and .asc to .gitignore
gregkh Jan 17, 2014
5d047b2
Remove some remaining identi.ca mentions
gregkh Jan 23, 2014
d61f6a1
remove group support
gregkh Jan 23, 2014
8ecdc66
bti.xml: fix typo
gregkh Jan 23, 2014
e362156
bti.1: update manpage with typo fix from .xml template
gregkh Jan 27, 2014
1536609
NOTES: update how to upload this stuff...
gregkh Jan 27, 2014
e855bb6
Install bash completion
scop Feb 18, 2015
3f9cb71
Merge pull request #36 from scop/master
gregkh Feb 26, 2015
74d73b6
oauth_split_url_parameters returns 5 fix
arssivka Nov 29, 2016
122572c
Merge pull request #40 from arssivka/#39
gregkh Nov 30, 2016
e5a358c
Request a PIN code during initial app authorization
anisse Mar 1, 2017
c28e783
Merge pull request #41 from anisse/master
gregkh May 27, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
.deps
bti
*.asc
*.bz2
*.gz
*.o
*.swp
*.gz
*.bz2
*.tar
INSTALL
Makefile
Makefile.in
TAGS
aclocal.m4
autom4te.cache
check-news.in
compile
config.guess
config.h
config.h.in
config.log
config.status
config.guess
config.sub
configure
depcomp
install-sh
libtool
ltmain.sh
install-sh
missing
configure
stamp-h1
depcomp
INSTALL
check-news.in
tags
TAGS
54 changes: 54 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,57 @@
Summary of changes from v033 to v034
============================================

Colin Guthrie (1):
Build against the new JSON-C library name.

Dirk Eddelbuettel (1):
change remaining http:// to https://

Greg Kroah-Hartman (5):
use -EIO instead of -EREMOTEIO
dry-run shouldn't error out.
remove identi.ca support.
Remove unused xml parsing function
Merge pull request #32 from eddelbuettel/master


Summary of changes from v032 to v033
============================================

Greg Kroah-Hartman (9):
Merge pull request #24 from pferor/master
Fix build issue
rework finding the config file.
Minor coding style cleanups.
Remove the FSF's address, as we don't care about that.
Error out if the command line option for a config file fails.
Merge pull request #23 from maneulyori/master
coding style cleanups
fix up coding style differences generated in the json parsing functions

Paul Salanitri (3):
Add direct message capability. Also adds rudimentry error checking on both updates and direct messages.
Update the man page to show direct message ability.
Add direct message action.

Pferor (1):
Add XDG compilance (~/.config/bti) support

maneulyori (3):
increased size of char endpoint to 2KByte. It will fix bti crashes while tweeting long unicode string.
use snprintf instead of sprintf. It will prevent BOF.
Stop tweeting when tweet length is over 140 character.

paulrho (7):
Merge https://github.com/gregkh/bti
Better error checking Use twitter to detect >140 chars
Typo fix
write status update and direct message with json url read json error messages
include JSON library guard against a pre 0.10 json library bug
another json pre10 issue to work around
Enable showing timeline: friends, user (public does not work)


Summary of changes from v031 to v032
============================================

Expand Down
13 changes: 12 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,28 @@ bti_SOURCES = \
bti_CFLAGS = \
$(LIBCURL_CFLAGS) \
$(XML_CFLAGS) \
$(JSON_CFLAGS) \
$(LIBPCRE_CFLAGS) \
$(LIBOAUTH_CFLAGS)

bti_LDADD = \
$(LIBCURL_LIBS) \
$(XML_LIBS) \
$(JSON_LIBS) \
$(LIBPCRE_LIBS) \
$(LIBOAUTH_LIBS)

dist_man_MANS = \
bti.1 \
bti-shrink-urls.1

bashcompdir = @bashcompdir@
dist_bashcomp_DATA = bti-bashcompletion

EXTRA_DIST = \
bti.xml \
bti-shrink-urls.xml \
bti.example \
bti-bashcompletion \
RELEASE-NOTES \
bti-shrink-urls

Expand All @@ -45,6 +49,13 @@ git-clean:
distclean-local:
rm -rf autom4te.cache

install-data-hook:
mv $(DESTDIR)$(bashcompdir)/bti-bashcompletion \
$(DESTDIR)$(bashcompdir)/bti

uninstall-hook:
$(RM) $(DESTDIR)$(bashcompdir)/bti

PREVIOUS_VERSION = 0`expr $(VERSION) - 1`

changelog:
Expand Down
8 changes: 8 additions & 0 deletions NOTES
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
release:
make distcheck
gzip -dv bti-*.tar.gz
gpg -a -b bti-???.tar
kup --host=gregkh@geb.kernel.org put bti-???.tar bti-???.tar.asc /pub/software/web/bti/bti-???.tar.gz
kup --host=gregkh@geb.kernel.org put bti-???.tar bti-???.tar.asc /pub/software/web/bti/bti-???.tar.xz


8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bti - bash twitter/identi.ca ididocy
bti - bash twitter idiocy

Allows you to pipe your bash input to twitter or identi.ca in an easy
and fast manner to annoy the whole world.
Allows you to pipe your bash input to twitter in an easy and fast manner
to annoy the whole world.

See the man page bti.1 for how to use it and more information.

Expand All @@ -11,7 +11,7 @@ data to the world with it.
USE AT YOUR OWN RISK!

Any questions, contact Greg Kroah-Hartman <greg@kroah.com> or @gregkh
on twitter or identi.ca.
on twitter.

bti is developed using git and the tree can be found at:
git://github.com/gregkh/bti.git
Expand Down
14 changes: 14 additions & 0 deletions RELEASE-NOTES
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
bti 033
=============
- fixes due to Twitter turning off http support (everything is https now.)
thanks to Dirk Eddelbuettel
- BSD build fixes
- JSON-C build fixes thanks to Colin Guthrie

bti 033
=============
- fixes due to Twitter turning off old XML interface thanks to Paul Salanitri
- direct message capability thanks to Paul Salanitri
- XDG compliance for configuration file
- other minor bugfixes

bti 032
=============
- oauth for custom StatusNet installations now works properly.
Expand Down
22 changes: 11 additions & 11 deletions bti.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'\" t
.\" Title: bti
.\" Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\" Generator: DocBook XSL Stylesheets v1.78.0 <http://docbook.sf.net/>
.\" Date: May 2008
.\" Manual: bti
.\" Source: bti
Expand All @@ -28,23 +28,23 @@
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
bti \- send a tweet to twitter\&.com or identi\&.ca from the command line
bti \- send a tweet to twitter\&.com from the command line
.SH "SYNOPSIS"
.HP \w'\fBbti\fR\ 'u
\fBbti\fR [\fB\-\-account\ account\fR] [\fB\-\-password\ password\fR] [\fB\-\-action\ action\fR] [\fB\-\-user\ screenname\fR] [\fB\-\-host\ HOST_NAME\fR] [\fB\-\-proxy\ PROXY:PORT\fR] [\fB\-\-logfile\ LOGFILE\fR] [\fB\-\-config\ CONFIGFILE\fR] [\fB\-\-replyto\ ID\fR] [\fB\-\-retweet\ ID\fR] [\fB\-\-page\ PAGENUMBER\fR] [\fB\-\-bash\fR] [\fB\-\-shrink\-urls\fR] [\fB\-\-debug\fR] [\fB\-\-dry\-run\fR] [\fB\-\-verbose\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
.SH "DESCRIPTION"
.PP
bti sends a tweet message to twitter\&.com or identi\&.ca\&.
bti sends a tweet message to twitter\&.com\&.
.SH "OPTIONS"
.PP
\fB\-\-account account\fR
.RS 4
Specify the twitter\&.com or identi\&.ca account name\&.
Specify the twitter\&.com account name\&.
.RE
.PP
\fB\-\-password password\fR
.RS 4
Specify the password of your twitter\&.com or identi\&.ca account\&.
Specify the password of your twitter\&.com account\&.
.RE
.PP
\fB\-\-action action\fR
Expand All @@ -54,12 +54,12 @@ Specify the action which you want to perform\&. Valid options are "update" to se
.PP
\fB\-\-user screenname\fR
.RS 4
Specify the user whose messages you want to see when the action is "user", and the reciever of the direct message when the action is "direct" (the sender must be following the receiver)\&.
Specify the user whose messages you want to see when the action is "user", and the receiver of the direct message when the action is "direct" (the sender must be following the receiver)\&.
.RE
.PP
\fB\-\-host HOST_NAME\fR
.RS 4
Specify the host which you want to send your message to\&. Valid options are "twitter" to send to twitter\&.com and "identica" to send to identi\&.ca\&. If you want to send the message to a custom StatusNet installation, you should specify the API URI\&. For example identi\&.ca\*(Aqs URI is: https://identi\&.ca/api/statuses
Specify the host which you want to send your message to\&. Valid options are "twitter" to send to twitter\&.com\&.
.sp
If no host is specified, the default is to send to twitter\&.com\&.
.RE
Expand Down Expand Up @@ -167,12 +167,12 @@ The account and password can be stored in a configuration file in the users home
.PP
\fBaccount\fR
.RS 4
The twitter\&.com or identi\&.ca account name you wish to use to send this message with\&.
The twitter\&.com account name you wish to use to send this message with\&.
.RE
.PP
\fBpassword\fR
.RS 4
The twitter\&.com or identi\&.ca password for the account you wish to use to send this message with\&.
The twitter\&.com password for the account you wish to use to send this message with\&.
.RE
.PP
\fB\-\-action action\fR
Expand All @@ -187,7 +187,7 @@ Specify the user you want to see his/her messages while the action is "user"\&.
.PP
\fBhost\fR
.RS 4
The host you want to use to send the message to\&. Valid options are either "twitter" or "identica" to send to twitter\&.com or identi\&.ca respectively\&. If you want to send the message to a custom StatusNet installation, you should specify the API URI\&. For example identi\&.ca\*(Aqs URI is: https://identi\&.ca/api/statuses\&.
The host you want to use to send the message to\&. Valid options is "twitter" or "custom" to specify your own server\&.
.RE
.PP
\fBproxy\fR
Expand Down Expand Up @@ -238,4 +238,4 @@ environment variables
For example, command line options always override any config file option, or any environment variables\&. Unless a config file is specified by the command line\&. At that point, the new config file is read, and any previous options set by a command line option, would be overridden\&.
.SH "AUTHOR"
.PP
Written by Greg Kroah\-Hartman <greg@kroah\&.com> and Amir Mohammad Saied <amirsaied@gmail\&.com>\&.
Written by Greg Kroah\-Hartman <<greg@kroah\&.com>> and Amir Mohammad Saied <<amirsaied@gmail\&.com>>\&.
Loading