--- texinfo-4.6/util/install-info.c.orig 2003-10-27 17:11:27 +0300 +++ texinfo-4.6/util/install-info.c 2003-10-27 17:27:44 +0300 @@ -1243,6 +1243,16 @@ For more information about these matters if (!dirfile) fatal (_("No dir file specified; try --help for more information."), 0, 0); + { + const char *skip = getenv ("RPM_EXCLUDEDOCS"); + + while (skip && *skip && isspace(*skip)) + ++skip; + + if (skip && *skip) + return EXIT_SUCCESS; + } + /* Read the Info file and parse it into lines, unless we're deleting. */ if (!delete_flag) {