Codebase list texinfo / bce4411
drop old install-info script, make ginstall-info link Norbert Preining 9 years ago
5 changed file(s) with 14 addition(s) and 80 deletion(s). Raw diff Collapse all Expand all
00 texinfo (5.2.0.dfsg.1-4) UNRELEASED; urgency=medium
11
2 * do not warn when calling install-info (Closes: #748433)
3
4 -- Norbert Preining <preining@debian.org> Sun, 18 May 2014 11:50:43 +0900
2 * drop old install-info script, make install-info the real program
3 and ginstall-info a link to it (Closes: #748433, #479070)
4
5 -- Norbert Preining <preining@debian.org> Tue, 03 Jun 2014 11:24:59 +0900
56
67 texinfo (5.2.0.dfsg.1-3) unstable; urgency=medium
78
+0
-29
debian/install-info.1 less more
0 .TH INSTALL-INFO 1
1 .\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
2 .\" other parms are allowed: see man(7), man(1)
3 .SH NAME
4 install-info \- wrapper around GNU install-info
5 .SH SYNOPSIS
6 .B install-info
7 .I "[options]"
8 .br
9 .SH DESCRIPTION
10 This manual page documents briefly the
11 .BR install-info
12 command.
13 This manual page was written for the Debian GNU/Linux distribution
14 because the original script was designed for Debian packaging system.
15 .PP
16 .B install-info
17 is a wrapper around GNU install-info. If it is called from a normal
18 shell or script it acts like GNU install-info by forwarding all options
19 to ginstall-info.
20 .PP
21 If it is called from a maintainer script it gives a warning to rebuild
22 packages and does nothing, since info file installation is now done
23 via triggers.
24 .SH OPTIONS
25 Same as with GNU install-info, see ginstall-info(1).
26 .SH AUTHOR
27 This manual page was written by Norbert Preining <preining@logic.at>,
28 for the Debian GNU/Linux system (but may be used by others).
+0
-37
debian/install-info.sh less more
0 #!/bin/sh
1 #
2 # Wrapper to the GNU's install-info, to be compatible with the one that used to
3 # be packaged by dpkg on Debian.
4 #
5 # written by Norbert Preining, this is not copyrightable ;-)
6 #
7 set -e
8
9 if [ -z "$DPKG_RUNNING_VERSION" ] ; then
10 # it seems we are running from outside a maintainer script, so give a
11 # warning and call ginstall-info without anything else
12 # we are so long in the transition, we don't need to tell this anymore!
13 # echo "This is not dpkg install-info anymore, but GNU install-info" >&2
14 # echo "See the man page for ginstall-info for command line arguments" >&2
15 ginstall-info "$@"
16 else
17 # we are running from a maintainer script, simply ignore the call
18 # since we have trigger support and people should rebuild their
19 # package with new debhelper which does not add calls to install-info
20 # Do not complain if called with "--remove" or "--remove-exactly",
21 # as these are used in old packages' prerm scripts (see #546165)
22 while [ -n "$1" ]; do
23 case "$1" in
24 --remove|--remove-exactly)
25 exit 0
26 ;;
27 *)
28 shift
29 ;;
30 esac
31 done
32 echo "Ignoring install-info called from maintainer script" >&2
33 echo "The package $DPKG_MAINTSCRIPT_PACKAGE should be rebuilt with new debhelper to get trigger support" >&2
34 fi
35
36
6767 rm -rf $(tmpdir)/usr/share/texmf/tex/generic
6868 # install all the files
6969 dh_install --list-missing --sourcedir=debian/tmp -X share/info
70 dh_link
7170 #
7271 # install additional files that are not installed by default
7372 install -m 0755 util/txixml2texi $(texinfo)/usr/bin/txixml2texi
7473 #
75 # work on debian install-info
76 mv $(ii)/usr/bin/install-info $(ii)/usr/bin/ginstall-info
77 sed -e "s/install-info/g&/g" \
78 < $(ii)/usr/share/man/man1/install-info.1 \
79 > $(ii)/usr/share/man/man1/ginstall-info.1
80 rm -f $(ii)/usr/share/man/man1/install-info.1
81 install -m 0755 debian/install-info.sh $(ii)/usr/bin/install-info
82 install -m 0644 debian/install-info.1 $(ii)/usr/share/man/man1/install-info.1
74 # we ship ginstall-info as link to install-info, it is long enough
75 dh_link -p $(ii) \
76 usr/share/man/man1/install-info.1 \
77 usr/share/man/man1/ginstall-info.1 \
78 usr/bin/install-info \
79 usr/bin/ginstall-info
80 #
81 # other scripts to be installed
8382 install -m 0755 debian/update-info-dir $(ii)/usr/sbin/update-info-dir
8483 mkdir -p $(ii)/usr/share/man/man8
8584 install -m 0644 debian/update-info-dir.8 $(ii)/usr/share/man/man8/update-info-dir.8
5252 cp $INFODIR/dir $INFODIR/dir.old
5353 fi
5454
55 # we have to remove the dir file not make ginstall-info being surprised
55 # we have to remove the dir file not make install-info being surprised
5656 rm -f "$INFODIR/dir"
5757
5858 errors=0
6363 continue
6464 ;;
6565 *)
66 ginstall-info "$file" "$INFODIR/dir" || {
66 install-info "$file" "$INFODIR/dir" || {
6767 errors=$[errors+1]
6868 }
6969 ;;