c-w / gutenberg

A simple interface to the Project Gutenberg corpus.
Apache License 2.0
322 stars 59 forks source link

Get makefile to work on Mac #6

Closed MasterOdin closed 9 years ago

MasterOdin commented 9 years ago

Right now, the make file relies on the environment having the GNU tools as part of the shell (available by default on some Linux distros such as Mint). However, Mac doesn't have this by default causing each sed to return empty, so need to use more basic sed syntax in addition to tr to follow POSIX specification and allow greater compatibility with systems.

Tested on: Linux Mint 17 (qiana) - Kernel: 3.13.0-24 - GNOME: 3.84 Mac OSX 10.10

All commands utilizing the strings work as expected (otherwise)