~ubuntu-branches/ubuntu/saucy/dhelp/saucy-proposed

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Esteban Manchado Velázquez
  • Date: 2007-10-20 17:35:26 UTC
  • Revision ID: james.westby@ubuntu.com-20071020173526-q1ekqfek5tlctsn1
Tags: 0.5.25
* Maintainer change.
* Rewrite dhelp_parse in Ruby. This fixes some bugs and avoids many problems
  (Closes: #21678, #268487, #62454, #312950, #442943, #444429, #193428).
* This release should be a drop-in replacement for the C version, and still
  uses the same database and internal format.
* It also adds a Ruby library, to allow other developers to write other
  programs that read and/or update the dhelp databases.
* Use "http://localhost" for CGI script URLs (Closes: #114588).
* Removed misleading dot from example (Closes: #381804).
* Uses sensible-browser instead of having its own configuration system
  (Closes: #146002, #162518, #381805, #217162, #430590).
* Clean up the HTML a bit (Closes: #438973, #134567, #115306).
* Remove references to obsolete script dh_dhelp (Closes: #369459).
* Raise title limit from 49 to 100 characters (Closes: #102393).
* Depend on doc-base, to make sure packages have their documentation
  available for dhelp (Closes: #314733, #368035).
* Wait a couple of seconds before exiting, after a fatal error, to make sure
  the user can read the error message (Closes: #35097).
* Make documentation index files world-readable, regardless of current umask
  (Closes: #158792, #430474, #430505).
* Remove obsolete script dhelp2dwww.pl, and references to it
  (Closes: #364245).
* Remove "dangerous" environment variables from dsearch, to avoid taint
  problems (Closes: #389944).
* Strip blanks from .dhelp field values (Closes: #133218).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for dhelp project
 
2
 
 
3
# Copyright (C) 2005 Esteban Manchado Vel�zquez <zoso@debian.org>
 
4
 
 
5
# This file is free software; you can redistribute it and/or modify it
 
6
# under the terms of the GNU General Public License as published by the
 
7
# Free Software Foundation; either version 2, or (at your option) any
 
8
# later version.
 
9
 
 
10
# This file is distributed in the hope that it will be
 
11
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 
12
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
# General Public License for more details.
 
14
 
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with this file; see the file COPYING.  If not, write to the Free
 
17
# Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 
 
19
PACKAGE = dhelp
 
20
VERSION = 0.5.25
 
21
PREFIX_  = $(if $(PREFIX),$(PREFIX),/usr/local)
 
22
DESTDIR_ = $(DESTDIR)/$(PREFIX_)
 
23
 
 
24
all:
 
25
 
 
26
install:
 
27
        mkdir -p $(DESTDIR_) $(DESTDIR_)/sbin $(DESTDIR_)/bin $(DESTDIR_)/lib/cgi-bin $(DESTDIR_)/share/doc/dhelp
 
28
        # Executable files
 
29
        install dhelp_parse.rb $(DESTDIR_)/sbin/dhelp_parse.rb
 
30
        # Ruby libraries
 
31
        mkdir -p $(DESTDIR_)/lib/ruby/1.8
 
32
        cp lib/* $(DESTDIR_)/lib/ruby/1.8
 
33
        # Update PREFIX variable in dhelp_parse.rb
 
34
        sed 's|^PREFIX = .*|PREFIX = "$(PREFIX_)"|' $(DESTDIR_)/sbin/dhelp_parse.rb >$(DESTDIR_)/sbin/dhelp_parse
 
35
        rm -f $(DESTDIR_)/sbin/dhelp_parse.rb
 
36
        chmod a+x $(DESTDIR_)/sbin/dhelp_parse
 
37
        install dhelp $(DESTDIR_)/bin/dhelp
 
38
        install dsearch $(DESTDIR_)/lib/cgi-bin/dsearch
 
39
        # Misc files/dirs
 
40
        for file in CREDITS doc/*; do \
 
41
            cp $$file $(DESTDIR_)/share/doc/dhelp/; \
 
42
        done
 
43
        mkdir -p $(DESTDIR_)/share/doc/HTML
 
44
        mkdir -p $(DESTDIR_)/share/dhelp
 
45
        cp {index,category}.rhtml $(DESTDIR_)/share/dhelp/
 
46
 
 
47
test:
 
48
        RUBYLIB=lib:test ruby -w test/ts_dhelp.rb
 
49
 
 
50
.PHONY: test