NAME
Geph::Map - create gophermaps for my phlog
SYNOPSIS
use Geph::Map;
# Options passed to the constructor are only used if they are not se
# config file.
# root_dir defaults to $HOME/gopher and the setting is commented out
# example config that is automatically created.
my $geph = Geph::Map->new(
root_dir => "$ENV{HOME}/gopher_test",
logo_file => "logo",
logo_color => "red",
header_file => "header",
static_file => "static"
);
my $entries_hash = $geph->get_entry_list;
$geph->create_phlog_maps($entries_hash);
$geph->delete_main_gophermap;
$geph->write_logo;
$geph->write_header;
$geph->create_phlog_list($entries_hash);
$geph->write_static_file;
DESCRIPTION
This is what I use.
Creates main gophermap from static files containing gopher formatted
text.
Dynamically creates a list of latest entries of a phlog from text fi
FUNCTIONS
__chmod()
Fix access rights.
create_phlog_list
TODO DESCRIPTION
delete_main_gophermap
Delete main gophermap. You probably want to do this. Other methods o
append to main gophermap.
write_logo()
Prints the logo from log file if said file exists.
Prints the logo in color if C<logo_color> is set.
TODO specifiy details for configuration
write_header()
Print the header file if it exists.
Uses the configuration option C<header_file>.
write_static_file
Write file from option C<static_file> to main gophermap.
create_phlog_maps()
Creates a gophermap file under each directory of C<phlog_dir_names>.
get_entry_list()
Creates a list for entries in the phlog directories.
CONFIGURATION FILE
Can be one of the folling:
$HOME/.config/geph-map/config
$HOME/.geph-map/config
$HOME/.geph-map.conf
Default is
$HOME/.config/geph-map/config
AUTHOR
snake_case_nemo <scnemo@sdf.org>
(BIN) create_gophermap.pl
(TXT) create_gophermap.pl