commit 0a1bbcc10d1a17969587d5995e4d47ca543a129c Merge: 1175740 aae47c9 Author: astrand Date: Mon Mar 14 10:42:31 2016 +0100 Merge pull request #23 from hwangcc23/remove_last_newline Add the remove-last-newline option commit 1175740013bbc4f22c55b894a2367c07c8cf499a Merge: e2dd115 e0828ad Author: astrand Date: Mon Mar 14 10:40:14 2016 +0100 Merge pull request #22 from hwangcc23/fix-warning Fix the compile warning & build steps, and add .gitignore commit aae47c927a969d48009a7e372331ed17ecc7c80c Author: hwangcc23 Date: Thu Mar 10 09:57:54 2016 +0800 Add the remove-last-newline option This is an option proposed by Philipp Spitzer. See https://github.com/astrand/xclip/issues/7 Use his patch (but only keep code related to the rmlastnl option). An new option "-rmlastnl" is added to remove the last newline character if present. commit e0828ad502287394f1a9ea40f52b5deb013204ad Author: hwangcc23 Date: Wed Mar 9 21:44:41 2016 +0800 Fix building steps in INSTALL Before running ./configure, autoreconf is required to generate configuration files. commit cde9c46b29216b9aae014dc4ef5b57c8426831b3 Author: hwangcc23 Date: Wed Mar 9 21:41:33 2016 +0800 Fix one compile warning Fix this compile warning: xclip.c: In function 'doIn': xclip.c:302:5: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^ commit 650dc6278c7f5d1bb79ed284c6883ae2302fbbc5 Author: hwangcc23 Date: Wed Mar 9 21:41:13 2016 +0800 Add .gitignore commit e2dd115d66ecf5c772fd5359362990c17ee0defd Author: Peter Åstrand (astrand) Date: Tue Feb 2 09:03:12 2016 +0100 Changing Sourceforge URLs to GitHub. commit d1f416958743a2c121ea4fa7554b9b19646911fd Author: astrand Date: Sun Feb 9 14:36:26 2014 +0000 Applied patch from Marcin Szewczyk : don't treat TARGETS request as contents request commit 23c15101a77a584b1ae6c996de8aac254135ae16 Author: astrand Date: Sun Oct 17 16:53:38 2010 +0000 Applied patch from Alexia: * Document the -noutf8 option. * Minor lang corrections. commit c31ad0ac9bef4e4861f2af5cce6079213c787815 Author: astrand Date: Mon May 3 18:39:33 2010 +0000 Avoid warnings about unused variable; only define html if HAVE_ICONV. commit b8adfb971b99ce8723059aaedd9ecd032561d151 Author: astrand Date: Mon May 3 18:38:50 2010 +0000 Indented commit d7e6f233c24346b8a1a8a8ccde72fa0bc1cf2a68 Author: astrand Date: Fri Apr 30 20:12:25 2010 +0000 Applied 2924602 - 0005-Added-a-target-command-line-option.patch commit 743b9d2181f08c9fbc5901e3c15c154ddd9d874e Author: astrand Date: Fri Apr 30 20:11:34 2010 +0000 Applied 2924602 - 0004-Improved-xclip-s-error-handling.patch commit 92eac7137a04da6673c92504a7ce75b50522b3a2 Author: astrand Date: Fri Apr 30 20:10:29 2010 +0000 Applied 2924602 - 0003-Added-support-for-printing-more-data-types.patch commit 5eb998ddaf5f4454d6119466a0e41ded4011912e Author: astrand Date: Fri Apr 30 20:09:50 2010 +0000 Applied 2924602 - 0002-Added-support-in-xcout-for-receiving-16-and-32-bit-d.patch commit be7e3580bfca59f7c78140a80098ec2002538a12 Author: astrand Date: Fri Apr 30 20:09:08 2010 +0000 Applied 2924602 - 0001-Added-a-parameter-to-xcout-which-receives-the-type-o.patch === Old ChangeLog === Version 0.12 (Peter Åstrand) Build fixes: Check for Xmu and Xt The version number has been corrected. Man pages are now available. Contributed by Maximilian Gass. Version 0.11 (Peter Åstrand) xclip-copyfile is now compatible with recent tar versions. The Fedora UTF-8 patch has been applied. Version 0.10 (Peter Åstrand) The performance has been greatly enhanced, especially over slow networks. Two helper scripts, xclip-copyfile and xclip-pastefile, has been added. Taken together, xclip can now be used as an alternative to sftp/scp, thus avoiding password prompt when X11 forwarding has already been setup. Autoconf is now used instead of Imake. The maintainer and web site address has been updated. All Debian patches have been applied. Version 0.09: (Baruch Even) Changed dir to / when staying running so that the current directory can be umounted if necessary. Version 0.08: Remove all event loops from xclib fuctions, to allow xclib to be integrated into general-purpose event loops of other software more easily. Started using debian.org for email and website. Version 0.07: Not a lot of changes in terms of features, but tonnes of bug and portability fixes, as well as general code cleanup. Fixed a segfault problem with errperror in v0.06. Can't believe I didn't notice it before I released it. Cleaned up the code, hopefully for complete compatibilty with more C compilers and platforms. xclip compiles without warning on my Debian GNU/Linux development platform with gcc -Wall -W -pedantic -ansi -Wtraditional -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline I figure if it compiles without warning with those options, it should compile OK on pretty much any suitable platform (see README for what counts as a suitable platform). I wish GCC just had a -Wanal-retentive option... I discovered the wonders of Electric Fence, so I was able to fix up some memory problems that didn't cause problems before, but probably wouldn't have helped things either. I rewrote the way a few things work. For example, xclip doesn't store the selection data in strings any more, but rather just in allocated memory of known length, so you can now copy and paste data with nulls in it. It's probably not recommended though, gtk doesn't seem to read beyond the first null byte. I have successfully used xclip to copy and paste a 500k PNG image, it came out identical (same md5sum), so it's fairly robust in terms of the size and nature of the data that it will handle. Version 0.06: Added support for INCR mechanism. This means that -o should be able to print out selections that were previously too big and would have resulted in a message "Error: Support for format not yet implemented." In in mode, using the INCR mechanism means that you can use xclip on really big data. It used to work OK on big data, but it is better behaved about it now. Created xclib.c file to look after the xlib selection and property code from xclip.c. This may (or may not) be handy for anyone who wants a simple way to use selections without using a widget set or getting too involved in doing it themselves with xlib. I know a lot of people are using xclip from inside scripts or other programs at the moment, perhaps it xclib.c would be allow people to integrate the code into their own projects easily. All in all, a general cleanup (as I am now semi-competant with C), and complete support for the INCR mechanism. Version 0.05: Added -selection option to allow access to XA_SECONDARY and XA_CLIPBOARD. Use "-selection secondary", or "-s s" Changed email address. Added -Wall to C compiler options in Imakefile, fixed up some warnings. Updated man page. Version 0.04: Changed use of getopt_long() to XrmParseCommand(), a function in xlib, for portability. Apparently System V Unix derived machines don't have getopt_long(). XrmParseCommand() is part of xlib, and hence should *always* be available. XrmParseCommand is pretty average. It ignores ambiguous options (-ver gets ignored, instead of going to -verbose or -version). It doesn't do multiple options with one hyphen (-if instead of (-i -f), etc. Added xclip -out (out mode) and -filter (print stdin back to stdout). Version 0.03: Changed use of getopt_long_only to getopt_long, which should work better with non-GNU platforms. Fixed segfault when given a non-existant file to read. Made Imakefile for use with xmkmf. This means that xclip should build and install fairly nicely on any system with an X Consortium derived X server (nearly all Unix style X servers I would imagine). Wrote a decent man page. Version 0.02: Patch to allow reading from files if specified as arguments applied. Cleaned up source file (indenting, comments, etc). Started wrapping documentation at 80 chars. Added this changelog. Version 0.01: Everything. First release, pretty basic, but it worked.