UP | HOME

Fortune::Manager - easy administer fortune files!

Table of Contents

Fortune::Manager is a small perl script (I ♥ Perl) which easily administers fortune files, letting you add your fortune easily!

It's hosted in both http://git.santoro.tk and on GitHub.

Installation

The app is a common Perl module (in CPAN style, even if it's not yet in CPAN) so you can install it as you would do with any CPAN module you've downloaded:

Download the sources:

manu@joker:~/sources$ git clone http://github.com/esantoro/fortune-manager.git

Build and install it:

perl Makefile.PL
make
make test
make install

Usage and configuration

Simple yet straightforward:

manu@joker:~$ fortune-manager salug
#add the fortune to the fortune-manu-it fortune file

The configuration file is even simpler! Here's my own one:

## My own fortunes
/home/manu/projects/fortunes-manu-it/manu-it manu-it

# SaLUG-Fortunes!
/home/manu/projects/sfortunes/salug salug

Of course, as in Unix tradition (and I obey Unix traditions) you can insert your personal comments by beginning lines with the '#' character. Fortune::Manager automagically skips blank lines, of course.

License and notes

Copyright 2010 Emanuele Santoro.

This program is distributed under the (Revised) BSD License: http://www.opensource.org/licenses/bsd-license.php

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Emanuele Santoro's Organization nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Author: Emanuele Santoro <santoro@autistici.org>

Date: 2011-07-09 20:15:46 CEST

HTML generated by org-mode 6.33x in emacs 23