Skip to content

Commit

Permalink
Removed unnecesssary KBOX kludges
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinboone committed May 15, 2017
1 parent bec45df commit ebe5259
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ETCDIR=/etc

all: epub2txt

VERSION=0.1.3
VERSION=0.1.4

MYCFLAGS=-g -Wall -DVERSION=\"$(VERSION)\" $(CFLAGS)
MYLDFLAGS=$(LDFLAGS)
Expand Down
15 changes: 10 additions & 5 deletions README_epub2txt.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<h1>epub2txt -- Extract text from EPUB documents</h1>

Version 0.1.3, March 2016
Version 0.1.4, March 2016

<h2>What is this?</h2>

Expand Down Expand Up @@ -126,6 +126,14 @@ <h2>Revision history</h2>
<table cellpadding="5" cellspacing="5">
<tr>
<td valign="top">
0.1.4,&nbsp;May&nbsp;2017
</td>
<td valign="top">
Remove unnecessary KBOX support kludges
</td>
</tr>
<tr>
<td valign="top">
0.1.3,&nbsp;March&nbsp;2016
</td>
<td valign="top">
Expand Down Expand Up @@ -170,10 +178,7 @@ <h2>Downloads</h2>
source by a minor version or two.
<p/>

<a href="epub2txt-0.1.2.tar.gz">Source code bundle for all platforms</a><br/>
<a href="epub2txt_cygwin.exe">Compiled binary for Cygwin on Windows</a><br/>
<a href="epub2txt_0.1.0_kbox.deb">KBOX installer package</a> for use with <a href="kbox2.html">KBOX2</a> on Android devices<br/>
<a href="epub2txt_0.1_kbox3.deb">KBOX installer package</a> for use with <a href="kbox3.html">KBOX3</a> on Android devices<br/>
<a href="epub2txt-0.1.4.tar.gz">Source code bundle for all platforms</a><br/>

The latest source can also be checked out from <a href="https://github.com/kevinboone/epub2txt">github</a>.

Expand Down
9 changes: 5 additions & 4 deletions epub2txt.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,10 +878,11 @@ void epub2txt_do_file (const char *file, BOOL ascii, int width, BOOL notrim,
char cmd[512];


const char *kbox = getenv ("KBOX");
if (kbox)
sprintf (tempbase, "%s/tmp", kbox);
else
//This tmpdir offset is no longer necessary in KBOX3+
//const char *kbox = getenv ("KBOX");
//if (kbox)
// sprintf (tempbase, "%s/tmp", kbox);
//else
{
if (getenv ("TMP"))
strcpy (tempbase, getenv("TMP"));
Expand Down

0 comments on commit ebe5259

Please sign in to comment.