Commit f565fb58 authored by Salvatore Bonaccorso's avatar Salvatore Bonaccorso

Imported Upstream version 2.2.3

parents
Jaromir Hradilek <jhradilek@gmail.com>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
w2do - a simple text-based todo manager
installation instructions
Copyright (C) 2008, 2009 Jaromir Hradilek
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included as a file called FDL in the main
directory of the w2do source package.
1. General System Requirements
All parts of w2do package are standalone scripts written in Perl 5 and as
such, they should be platform independent. However, working installation of
Perl 5 is required in order to run these scripts. If you are using one of
Unix-like operating systems, it is highly probable that you have it already
installed. If you are using Windows, you can download it free of charge
from <http://www.activestate.com/Products/activeperl/>.
2. Installing on Unix Systems
The easiest way to install w2do on Unix operating system (e.g. Linux, vari-
ous *BSD systems etc.) is to use the existing Makefile. As a root, get into
the src/ directory in the w2do source package and type:
make install
This will install all executables and their corresponding man pages to the
predefined /usr/local/bin and /usr/local/share/man respectively. If these
locations do not satisfy your needs, you can either edit the relevant part
of the Makefile, or you can change the prefix directly on the command line:
make prefix=/some/location install
Similarly, typing
make uninstall
or, if you have previously changed the destination directory,
make prefix=/some/location uninstall
will completely remove all installed files.
On the other hand, you can also run the scripts directly from their present
location or copy the content of src/ directory somewhere in the $PATH your-
self.
3. Installing on Windows
No special installation is required in order to run w2do on Microsoft
Windows. In your favourite command line interpreter (e.g. cmd.exe), simply
get into the src/ directory of the w2do source package and type:
perl w2do [options]
etc. Try `--help' switch to get information about the usage.
# makefile for w2do, a simple text-based todo manager
# Copyright (C) 2008, 2009 Jaromir Hradilek
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTA-
# BILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
# General settings; feel free to modify according to your situation:
SHELL = /bin/sh
INSTALL = /usr/bin/install -c
POD2MAN = /usr/bin/pod2man
SRCS := $(wildcard src/*.pl)
MAN1 := $(patsubst %.pl, %.1, $(SRCS))
# Installation directories; feel free to modify according to your taste and
# situation:
prefix = /usr/local
bindir = $(prefix)/bin
mandir = $(prefix)/share/man
man1dir = $(mandir)/man1
# Make rules; please do not edit these unless you really know what you are
# doing:
.PHONY: all clean install uninstall
all: $(MAN1)
clean:
-rm -f $(MAN1)
install: $(MAN1)
@echo "Copying scripts..."
$(INSTALL) -d $(bindir)
$(INSTALL) -m 755 src/w2do.pl $(bindir)/w2do
$(INSTALL) -m 755 src/w2html.pl $(bindir)/w2html
$(INSTALL) -m 755 src/w2text.pl $(bindir)/w2text
@echo "Copying man pages..."
$(INSTALL) -d $(man1dir)
$(INSTALL) -m 644 src/w2do.1 $(man1dir)
$(INSTALL) -m 644 src/w2html.1 $(man1dir)
$(INSTALL) -m 644 src/w2text.1 $(man1dir)
uninstall:
@echo "Removing scripts..."
rm -f $(bindir)/w2do
rm -f $(bindir)/w2html
rm -f $(bindir)/w2text
@echo "Removing man pages..."
rm -f $(man1dir)/w2do.1
rm -f $(man1dir)/w2html.1
rm -f $(man1dir)/w2text.1
@echo "Removing empty directories..."
-rmdir $(bindir) $(man1dir) $(mandir)
%.1: %.pl
$(POD2MAN) $^ $@
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment