~ubuntu-branches/ubuntu/trusty/libcdk5/trusty

« back to all changes in this revision

Viewing changes to manlinks.sh

  • Committer: Bazaar Package Importer
  • Author(s): John Goerzen
  • Date: 2007-06-06 03:54:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070606035431-ba4gdvw0h6ybffsu
Tags: 5.0.20060507-1
* New upstream release.
* Fixed header patching.  Patch from Robert Schiele.
  Closes: #402978, #416336.
* Update widget count in description.  Closes: #294709.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# $Id: manlinks.sh,v 1.3 2002/08/09 23:56:21 tom Exp $
 
2
# $Id: manlinks.sh,v 1.5 2005/12/29 00:22:00 tom Exp $
3
3
# install/uninstall aliases for one or more manpages,
4
4
#
5
 
#  Copyright 2002, Thomas Dickey
 
5
#  Copyright 2002,2005 Thomas Dickey
6
6
#  All rights reserved.
7
7
#
8
8
#  Redistribution and use in source and binary forms, with or without
44
44
mandir=$1
45
45
shift
46
46
 
 
47
mansect=$1
 
48
shift
 
49
 
47
50
parent=`pwd`
48
51
script=$srcdir/manlinks.sed
49
52
 
66
69
        cd $mandir || exit 1
67
70
        if test $verb = installing ; then
68
71
                test -n "$aliases" && (
69
 
                        target=`basename $source`
 
72
                        if test "$suffix" = ".$mansect" ; then
 
73
                                target=`basename $source`
 
74
                        else
 
75
                                target=`basename $source $suffix`.$mansect
 
76
                                suffix=".$mansect"
 
77
                        fi
70
78
                        for cf_alias in $aliases
71
79
                        do
72
80
                                cf_doit=no
92
100
                        done
93
101
                )
94
102
        elif test $verb = removing ; then
 
103
                suffix=".$mansect"
95
104
                test -n "$aliases" && (
96
105
                        for cf_alias in $aliases
97
106
                        do