<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Geek at Play &#187; tar</title>
	<atom:link href="http://www.kylev.com/tag/tar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kylev.com</link>
	<description>kylev in text form</description>
	<lastBuildDate>Tue, 15 Feb 2011 03:19:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Not a good start</title>
		<link>http://www.kylev.com/2008/12/02/not-a-good-start/</link>
		<comments>http://www.kylev.com/2008/12/02/not-a-good-start/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 20:01:55 +0000</pubDate>
		<dc:creator>kylev</dc:creator>
				<category><![CDATA[Day in the Life]]></category>
		<category><![CDATA[Geekdom]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.kylev.com/?p=372</guid>
		<description><![CDATA[This is going to be one of those days.  I decided to install a python package called Plex that we use in a few places.  It looked like a coworker was misusing it a little, so I wanted to understand more.  I took a quick look at the tarball contents and was instantly annoyed. [kylev@kylev-dt [...]]]></description>
			<content:encoded><![CDATA[<p>This is going to be one of those days.  I decided to install a python package called <a href="http://www.cosc.canterbury.ac.nz/greg.ewing/python/Plex/">Plex</a> that we use in a few places.  It looked like a coworker was misusing it a little, so I wanted to understand more.  I took a quick look at the tarball contents and was instantly annoyed.</p>
<pre class="brush:bash">[kylev@kylev-dt tmp]$ tar tzf Plex-1.1.5.tar.gz
[ Bunch of stuff scrolls off]
tests/._test6.py
tests/test6.py
tests/._test7.in
tests/test7.in
tests/._test7.out
tests/test7.out
tests/._test7.py
tests/test7.py
tests/._test8.in
tests/test8.in
tests/._test8.out
tests/test8.out
tests/._test8.py
tests/test8.py
tests/._test9.in
tests/test9.in
tests/._test9.out
tests/test9.out
tests/._test9.py
tests/test9.py</pre>
<p>What jumps out at me is the damn <code>._</code> files everywhere.  Crud, the author did this on a Mac, which in certain cases (and versions of <code>tar</code>) will include these annoying extra empty files.  No big deal, it&#8217;s just annoying.  Maybe I&#8217;ll talk to the maintainer later and have him fix it.</p>
<p>Let&#8217;s get on with it and get this baby installed:</p>
<pre class="brush:bash">[kylev@kylev-dt tmp]$ tar xzf Plex-1.1.5.tar.gz
[kylev@kylev-dt tmp]$ cd Plex-1.1.5.tar.gz</pre>
<p>Wait, what the hell?  Why did tab-completion give me the tarball again?  Oh, damnit!  While being distracted and annoyed with the OSX dot-underscore files, I failed to notice that this tarball doesn&#8217;t have a top level container directory!  Argh, it has just spewed files all over instead of being neatly contained.  No big deal, I&#8217;m in my <code>~/tmp</code> directory so I probably didn&#8217;t over-write anything important.  Time to clean things up:</p>
<pre class="brush:bash">[kylev@kylev-dt tmp]$ tar tzf Plex-1.1.5.tar.gz | xargs rm
rm: cannot remove `./._Iconr': No such file or directory
rm: cannot remove `Iconr': No such file or directory
rm: cannot remove `Plex/': Is a directory
rm: cannot remove `doc/': Is a directory
rm: cannot remove `examples/': Is a directory
rm: cannot remove `tests/': Is a directory</pre>
<p>Bah, I could have used <code>rm -rf</code>, but I didn&#8217;t want to trash the whole <code>examples</code> or <code>doc</code> directories in case I had one not created by this package.  Let&#8217;s just clean up the last bits one by one.</p>
<pre class="brush:bash">[kylev@kylev-dt tmp]$ rmdir ._Icon^M</pre>
<p>What did tab-completion just do with&#8230; <strong>facepalm</strong>!  The tarball contained a directory with a carriage-return in the name!  Time to fire up emacs dired to finish cleaning up.</p>
<p>That was one troublesome tarball.  It can only get better from here, right?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kylev.com/2008/12/02/not-a-good-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

