Importing texinfo

Also adapted the fetch rules to correctly generate the gitignore
files for gcc, and allow the case of multiple modules in the same
directory, as found in gnu/dist.

Warning: This patch has an entry in docs/UPDATING

Change-Id: Ib781734e8fd7f9c6265fa65d62ba2cf3fccbc5ba
This commit is contained in:
Lionel Sambuc 2013-04-10 18:13:48 +02:00
parent 71d9541158
commit e946cc362d
25 changed files with 4926 additions and 45 deletions

View File

@ -172,11 +172,9 @@ afterinstall: .PHONY .MAKE
${MAKEDIRTARGET} man makedb
.endif # !defined(__MINIX)
.endif
.if !defined(__MINIX)
.if (${MKUNPRIVED} != "no" && ${MKINFO} != "no")
${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta
.endif
.endif # !defined(__MINIX)
.if !defined(NOPOSTINSTALL)
${MAKEDIRTARGET} . postinstall-check
.endif

View File

@ -76,10 +76,10 @@
./etc/hostname.file minix-sys
./etc/inet.conf minix-sys
./etc/make.conf minix-sys obsolete
./etc/mk.conf minix-sys
./etc/man.conf minix-sys
./etc/master.passwd minix-sys
./etc minix-sys
./etc/mk.conf minix-sys
./etc/motd minix-sys
./etc/mtab minix-sys
./etc/mtree minix-sys
@ -108,15 +108,15 @@
./etc/termcap minix-sys
./etc/ttys minix-sys
./etc/utmp minix-sys
./home minix-sys
./home/ast minix-sys
./home/ast/.ashrc minix-sys
./home/ast/.exrc minix-sys
./home/ast minix-sys
./home/ast/.profile minix-sys
./home/bin minix-sys
./home/bin/.ashrc minix-sys
./home/bin/.exrc minix-sys
./home/bin minix-sys
./home/bin/.profile minix-sys
./home minix-sys
./lib/cpp minix-sys
./libexec/ld-elf.so.1 minix-sys
./libexec/ld.elf_so minix-sys
@ -163,40 +163,40 @@
./usr/ast/.profile minix-sys
./usr/benchmarks minix-sys
./usr/benchmarks/unixbench minix-sys
./usr/benchmarks/unixbench/pgms minix-sys
./usr/benchmarks/unixbench/pgms/arithoh minix-sys
./usr/benchmarks/unixbench/pgms/register minix-sys
./usr/benchmarks/unixbench/pgms/short minix-sys
./usr/benchmarks/unixbench/pgms/int minix-sys
./usr/benchmarks/unixbench/pgms/long minix-sys
./usr/benchmarks/unixbench/pgms/float minix-sys
./usr/benchmarks/unixbench/pgms/double minix-sys
./usr/benchmarks/unixbench/pgms/whetstone-double minix-sys
./usr/benchmarks/unixbench/pgms/hanoi minix-sys
./usr/benchmarks/unixbench/pgms/poll minix-sys
./usr/benchmarks/unixbench/pgms/select minix-sys
./usr/benchmarks/unixbench/pgms/fstime minix-sys
./usr/benchmarks/unixbench/pgms/syscall minix-sys
./usr/benchmarks/unixbench/pgms/context1 minix-sys
./usr/benchmarks/unixbench/pgms/pipe minix-sys
./usr/benchmarks/unixbench/pgms/spawn minix-sys
./usr/benchmarks/unixbench/pgms/execl minix-sys
./usr/benchmarks/unixbench/pgms/dhry2 minix-sys
./usr/benchmarks/unixbench/pgms/dhry2reg minix-sys
./usr/benchmarks/unixbench/pgms/double minix-sys
./usr/benchmarks/unixbench/pgms/execl minix-sys
./usr/benchmarks/unixbench/pgms/float minix-sys
./usr/benchmarks/unixbench/pgms/fstime minix-sys
./usr/benchmarks/unixbench/pgms/hanoi minix-sys
./usr/benchmarks/unixbench/pgms/index.base minix-sys
./usr/benchmarks/unixbench/pgms/int minix-sys
./usr/benchmarks/unixbench/pgms/long minix-sys
./usr/benchmarks/unixbench/pgms/looper minix-sys
./usr/benchmarks/unixbench/pgms minix-sys
./usr/benchmarks/unixbench/pgms/multi.sh minix-sys
./usr/benchmarks/unixbench/pgms/pipe minix-sys
./usr/benchmarks/unixbench/pgms/poll minix-sys
./usr/benchmarks/unixbench/pgms/register minix-sys
./usr/benchmarks/unixbench/pgms/select minix-sys
./usr/benchmarks/unixbench/pgms/short minix-sys
./usr/benchmarks/unixbench/pgms/spawn minix-sys
./usr/benchmarks/unixbench/pgms/syscall minix-sys
./usr/benchmarks/unixbench/pgms/tst.sh minix-sys
./usr/benchmarks/unixbench/pgms/unixbench.logo minix-sys
./usr/benchmarks/unixbench/pgms/index.base minix-sys
./usr/benchmarks/unixbench/tmp minix-sys
./usr/benchmarks/unixbench/testdir minix-sys
./usr/benchmarks/unixbench/pgms/whetstone-double minix-sys
./usr/benchmarks/unixbench/results minix-sys
./usr/benchmarks/unixbench/Run minix-sys
./usr/benchmarks/unixbench/run.sh minix-sys
./usr/benchmarks/unixbench/testdir/cctest.c minix-sys
./usr/benchmarks/unixbench/testdir/dc.dat minix-sys
./usr/benchmarks/unixbench/testdir/large.txt minix-sys
./usr/benchmarks/unixbench/testdir minix-sys
./usr/benchmarks/unixbench/testdir/sort.src minix-sys
./usr/benchmarks/unixbench/Run minix-sys
./usr/benchmarks/unixbench/run.sh minix-sys
./usr/benchmarks/unixbench/results minix-sys
./usr/benchmarks/unixbench/tmp minix-sys
./usr/bin/acknm minix-sys
./usr/bin/acksize minix-sys
./usr/bin/add_route minix-sys
@ -233,6 +233,7 @@
./usr/bin/clear minix-sys
./usr/bin/cmp minix-sys
./usr/bin/colcrt minix-sys
./usr/bin/col minix-sys
./usr/bin/co minix-sys
./usr/bin/comm minix-sys
./usr/bin/compress minix-sys
@ -241,7 +242,6 @@
./usr/bin/crc minix-sys
./usr/bin/cron minix-sys
./usr/bin/crontab minix-sys
./usr/bin/col minix-sys
./usr/bin/ctags minix-sys
./usr/bin/cut minix-sys
./usr/bin/datasizes minix-sys
@ -303,9 +303,12 @@
./usr/bin/ifconfig minix-sys
./usr/bin/ifdef minix-sys
./usr/bin/indent minix-sys
./usr/bin/infocmp minix-sys
./usr/bin/in.fingerd minix-sys
./usr/bin/infocmp minix-sys
./usr/bin/infokey minix-sys
./usr/bin/info minix-sys
./usr/bin/in.rshd minix-sys
./usr/bin/install-info minix-sys
./usr/bin/install minix-sys
./usr/bin/in.telnetd minix-sys
./usr/bin/ipcrm minix-sys
@ -334,6 +337,7 @@
./usr/bin/m4 minix-sys
./usr/bin/mail minix-sys
./usr/bin/MAKEDEV minix-sys
./usr/bin/makeinfo minix-sys
./usr/bin/make minix-sys
./usr/bin/mandoc minix-sys
./usr/bin/man minix-sys
@ -364,8 +368,8 @@
./usr/bin/patch minix-sys
./usr/bin/pax minix-sys obsolete
./usr/bin/ping minix-sys
./usr/bin/pkgin_cd minix-sys
./usr/bin/pkgin_all minix-sys
./usr/bin/pkgin_cd minix-sys
./usr/bin/postinstall minix-sys
./usr/bin/poweroff minix-sys
./usr/bin/prep minix-sys
@ -427,6 +431,8 @@
./usr/bin/tee minix-sys
./usr/bin/termcap minix-sys
./usr/bin/term minix-sys
./usr/bin/texi2dvi minix-sys
./usr/bin/texindex minix-sys
./usr/bin/tget minix-sys
./usr/bin/tic minix-sys
./usr/bin/time minix-sys
@ -844,8 +850,8 @@
./usr/include/sys/ioc_block.h minix-sys
./usr/include/sys/ioccom.h minix-sys
./usr/include/sys/ioc_disk.h minix-sys
./usr/include/sys/ioc_fb.h minix-sys
./usr/include/sys/ioc_fbd.h minix-sys
./usr/include/sys/ioc_fb.h minix-sys
./usr/include/sys/ioc_file.h minix-sys
./usr/include/sys/ioc_memory.h minix-sys
./usr/include/sys/ioc_net.h minix-sys
@ -1216,6 +1222,7 @@
./usr/man/man1/clear.1 minix-sys
./usr/man/man1/cmp.1 minix-sys
./usr/man/man1/co.1 minix-sys
./usr/man/man1/col.1 minix-sys
./usr/man/man1/comm.1 minix-sys
./usr/man/man1/command.1 minix-sys
./usr/man/man1/compress.1 minix-sys
@ -1225,7 +1232,6 @@
./usr/man/man1/cpio.1 minix-sys
./usr/man/man1/crc.1 minix-sys
./usr/man/man1/crontab.1 minix-sys
./usr/man/man1/col.1 minix-sys
./usr/man/man1/ctags.1 minix-sys
./usr/man/man1/cut.1 minix-sys
./usr/man/man1/date.1 minix-sys
@ -1287,8 +1293,11 @@
./usr/man/man1/if.1 minix-sys
./usr/man/man1/ifdef.1 minix-sys
./usr/man/man1/indent.1 minix-sys
./usr/man/man1/info.1 minix-sys
./usr/man/man1/infocmp.1 minix-sys
./usr/man/man1/infokey.1 minix-sys
./usr/man/man1/install.1 minix-sys
./usr/man/man1/install-info.1 minix-sys
./usr/man/man1/isodir.1 minix-sys
./usr/man/man1/isoinfo.1 minix-sys
./usr/man/man1/isoread.1 minix-sys
@ -1317,6 +1326,7 @@
./usr/man/man1/m4.1 minix-sys
./usr/man/man1/mail.1 minix-sys
./usr/man/man1/make.1 minix-sys
./usr/man/man1/makeinfo.1 minix-sys
./usr/man/man1/man.1 minix-sys
./usr/man/man1/mandoc.1 minix-sys
./usr/man/man1/md2.1 minix-sys
@ -1402,6 +1412,8 @@
./usr/man/man1/term.1 minix-sys
./usr/man/man1/termcap.1 minix-sys
./usr/man/man1/test.1 minix-sys
./usr/man/man1/texi2dvi.1 minix-sys
./usr/man/man1/texindex.1 minix-sys
./usr/man/man1/tget.1 minix-sys
./usr/man/man1/tic.1 minix-sys
./usr/man/man1/time.1 minix-sys
@ -1463,10 +1475,10 @@
./usr/man/man2/chmod.2 minix-sys
./usr/man/man2/chown.2 minix-sys
./usr/man/man2/chroot.2 minix-sys
./usr/man/man2/close.2 minix-sys
./usr/man/man2/clock_getres.2 minix-sys
./usr/man/man2/clock_gettime.2 minix-sys
./usr/man/man2/clock_settime.2 minix-sys
./usr/man/man2/close.2 minix-sys
./usr/man/man2/connect.2 minix-sys
./usr/man/man2/creat.2 minix-sys
./usr/man/man2/dup.2 minix-sys
@ -1501,8 +1513,8 @@
./usr/man/man2/mount.2 minix-sys
./usr/man/man2/open.2 minix-sys
./usr/man/man2/pause.2 minix-sys
./usr/man/man2/pipe.2 minix-sys
./usr/man/man2/pipe2.2 minix-sys
./usr/man/man2/pipe.2 minix-sys
./usr/man/man2/ptrace.2 minix-sys
./usr/man/man2/read.2 minix-sys
./usr/man/man2/readlink.2 minix-sys
@ -3660,6 +3672,7 @@
./usr/man/man5/hosts.5 minix-sys
./usr/man/man5/httpd.conf.5 minix-sys
./usr/man/man5/http_status.5 minix-sys
./usr/man/man5/info.5 minix-sys
./usr/man/man5/keymap.5 minix-sys
./usr/man/man5/libarchive-formats.5 minix-sys
./usr/man/man5/magic.5 minix-sys
@ -3679,6 +3692,7 @@
./usr/man/man5/tar.5 minix-sys
./usr/man/man5/termcap.5 minix-sys
./usr/man/man5/terminfo.5 minix-sys
./usr/man/man5/texinfo.5 minix-sys
./usr/man/man5/ttytab.5 minix-sys
./usr/man/man5/TZ.5 minix-sys
./usr/man/man5/tzfile.5 minix-sys
@ -3863,6 +3877,11 @@
./usr/share/doc/psd/19.curses/twinkle2.c minix-sys
./usr/share/doc/psd/19.curses/win_st.c minix-sys
./usr/share/doc/psd minix-sys
./usr/share/info/dir minix-sys
./usr/share/info/info.info minix-sys
./usr/share/info/info-stnd.info minix-sys
./usr/share/info minix-sys
./usr/share/info/texinfo.info minix-sys
./usr/share minix-sys
./usr/share/misc/acronyms.comp minix-sys
./usr/share/misc/acronyms minix-sys
@ -3872,6 +3891,7 @@
./usr/share/misc/bsd-family-tree minix-sys
./usr/share/misc/country minix-sys
./usr/share/misc/domains minix-sys
./usr/share/misc/epsf.tex minix-sys
./usr/share/misc/eqnchar minix-sys
./usr/share/misc/flowers minix-sys
./usr/share/misc/indent.pro minix-sys
@ -3886,6 +3906,10 @@
./usr/share/misc/NetBSD.el minix-sys
./usr/share/misc/operator minix-sys
./usr/share/misc/style minix-sys
./usr/share/misc/texinfo.cat minix-sys
./usr/share/misc/texinfo.dtd minix-sys
./usr/share/misc/texinfo.tex minix-sys
./usr/share/misc/texinfo.xsl minix-sys
./usr/share/misc/zipcodes minix-sys
./usr/share/mk/bsd.clang-analyze.mk minix-sys
./usr/share/mk/bsd.clean.mk minix-sys
@ -4544,7 +4568,6 @@
./usr/spool/mail minix-sys
./usr/spool minix-sys
./usr/src minix-sys
./usr/tests minix-sys
./usr/tests/minix-posix minix-sys
./usr/tests/minix-posix/run minix-sys
./usr/tests/minix-posix/t10a minix-sys
@ -4562,7 +4585,6 @@
./usr/tests/minix-posix/t67b minix-sys
./usr/tests/minix-posix/t68a minix-sys
./usr/tests/minix-posix/t68b minix-sys
./usr/tests/minix-posix/test1 minix-sys
./usr/tests/minix-posix/test10 minix-sys
./usr/tests/minix-posix/test11 minix-sys
./usr/tests/minix-posix/test12 minix-sys
@ -4573,7 +4595,7 @@
./usr/tests/minix-posix/test17 minix-sys
./usr/tests/minix-posix/test18 minix-sys
./usr/tests/minix-posix/test19 minix-sys
./usr/tests/minix-posix/test2 minix-sys
./usr/tests/minix-posix/test1 minix-sys
./usr/tests/minix-posix/test20 minix-sys
./usr/tests/minix-posix/test21 minix-sys
./usr/tests/minix-posix/test22 minix-sys
@ -4584,7 +4606,7 @@
./usr/tests/minix-posix/test27 minix-sys
./usr/tests/minix-posix/test28 minix-sys
./usr/tests/minix-posix/test29 minix-sys
./usr/tests/minix-posix/test3 minix-sys
./usr/tests/minix-posix/test2 minix-sys
./usr/tests/minix-posix/test30 minix-sys
./usr/tests/minix-posix/test31 minix-sys
./usr/tests/minix-posix/test32 minix-sys
@ -4595,7 +4617,7 @@
./usr/tests/minix-posix/test37 minix-sys
./usr/tests/minix-posix/test38 minix-sys
./usr/tests/minix-posix/test39 minix-sys
./usr/tests/minix-posix/test4 minix-sys
./usr/tests/minix-posix/test3 minix-sys
./usr/tests/minix-posix/test40 minix-sys
./usr/tests/minix-posix/test41 minix-sys
./usr/tests/minix-posix/test42 minix-sys
@ -4605,7 +4627,7 @@
./usr/tests/minix-posix/test46 minix-sys
./usr/tests/minix-posix/test48 minix-sys
./usr/tests/minix-posix/test49 minix-sys
./usr/tests/minix-posix/test5 minix-sys
./usr/tests/minix-posix/test4 minix-sys
./usr/tests/minix-posix/test50 minix-sys
./usr/tests/minix-posix/test52 minix-sys
./usr/tests/minix-posix/test53 minix-sys
@ -4614,7 +4636,7 @@
./usr/tests/minix-posix/test56 minix-sys
./usr/tests/minix-posix/test58 minix-sys
./usr/tests/minix-posix/test59 minix-sys
./usr/tests/minix-posix/test6 minix-sys
./usr/tests/minix-posix/test5 minix-sys
./usr/tests/minix-posix/test60 minix-sys
./usr/tests/minix-posix/test61 minix-sys
./usr/tests/minix-posix/test64 minix-sys
@ -4623,6 +4645,7 @@
./usr/tests/minix-posix/test67 minix-sys
./usr/tests/minix-posix/test68 minix-sys
./usr/tests/minix-posix/test69 minix-sys
./usr/tests/minix-posix/test6 minix-sys
./usr/tests/minix-posix/test70 minix-sys
./usr/tests/minix-posix/test71 minix-sys
./usr/tests/minix-posix/test72 minix-sys
@ -4635,6 +4658,7 @@
./usr/tests/minix-posix/testsh2 minix-sys
./usr/tests/minix-posix/testvm minix-sys
./usr/tests/minix-posix/testvm.conf minix-sys
./usr/tests minix-sys
./usr/tmp minix-sys
./usr/var/db minix-sys
./usr/var/db/pkg minix-sys

View File

@ -1,3 +1,13 @@
20130411:
Texinfo needs itself to generate its manual pages. As it is not
yet installed on the system it fails to find the default makeinfo
tool. So we have to first compile it, then install it will specifying
the full path to makeinfo (Both commands have to be run, in the given
sequence):
# make -C gnu/usr.bin/texinfo all
# make -C gnu/usr.bin/texinfo all install TOOL_MAKEINFO=/usr/src/gnu/usr.bin/texinfo/makeinfo/makeinfo
20130312:
/bin/ksh was imported and needs to be added to your /etc/shells.
Run this command to add it:

View File

@ -99,6 +99,7 @@
./usr/share/doc/html/bzip2
./usr/share/doc/psd
./usr/share/doc/psd/19.curses
./usr/share/info
./usr/share/misc
./usr/share/mk
./usr/share/terminfo

9
gnu/Makefile Normal file
View File

@ -0,0 +1,9 @@
# $NetBSD: Makefile,v 1.17 2010/12/03 21:38:47 plunky Exp $
SUBDIR+= usr.bin
# Speedup stubs for some subtrees that don't need to run these rules
includes-libexec:
@true
.include <bsd.subdir.mk>

34
gnu/README Normal file
View File

@ -0,0 +1,34 @@
$NetBSD: README,v 1.5 2003/12/04 23:32:37 keihan Exp $
Organization of Sources:
This directory hierarchy is using a new organization that
separates the GNU sources from the BSD-style infrastructure
used to build the GNU sources. The GNU sources are kept in
the standard GNU source tree layout under:
dist/*
The build infrastructure uses the normal BSD way under:
lib/*
usr.bin/*
The makefiles in the above hierarchy will "reach over" into
the GNU sources (src/gnu/dist) for everything they need.
Maintenance Strategy:
The sources under src/gnu/dist are generally a combination of
some published distribution plus changes that we submit to the
maintainers and that are not yet published by them. There are
a few files that are never expected to be submitted to the FSF,
(i.e. BSD-style makefiles and such) and those generally should
stay in src/gnu/lib or src/gnu/usr.bin (the BSD build areas).
Make sure all changes made to the GNU sources are submitted to
the appropriate maintainer, but only after coordinating with the
NetBSD maintainers by sending your proposed submission to the
<tech-toolchain@NetBSD.org> mailing list. Only send the changes
to the third-party maintainers after consensus has been reached.

32
gnu/dist/fetch.sh vendored
View File

@ -4,7 +4,7 @@
echo $0
cd `dirname $0`
# Configure fetch method
# Configure fetch method - GMAKE
URL="http://www.minix3.org/distfiles-minix/make-3.80.tar.bz2"
BACKUP_URL="ftp://ftp.gnu.org/gnu/make/make-3.80.tar.bz2"
FETCH=wget
@ -24,6 +24,34 @@ then
fi
tar -xjf make-3.80.tar.bz2 && \
mv make-3.80 gmake
mv make-3.80 gmake && \
echo "make*" >> .gitignore
echo "gmake*" >> .gitignore
fi
# Configure fetch method - TEXINFO
URL="http://www.minix3.org/distfiles-minix/texinfo-4.8.tar.bz2"
BACKUP_URL="ftp://ftp.gnu.org/gnu/texinfo/texinfo-4.8.tar.bz2"
FETCH=wget
which curl >/dev/null
if [ $? -eq 0 ]; then
FETCH="curl -O -f"
fi
# Fetch sources if not available
if [ ! -d texinfo ];
then
if [ ! -f texinfo-4.8.tar.bz2 ]; then
$FETCH $URL
if [ $? -ne 0 ]; then
$FETCH $BACKUP_URL
fi
fi
tar -xjf texinfo-4.8.tar.bz2 && \
cd texinfo-4.8 && \
cat ../../usr.bin/texinfo/patches/* | patch -p1 && \
cd - && \
mv texinfo-4.8 texinfo
fi

36
gnu/usr.bin/Makefile Normal file
View File

@ -0,0 +1,36 @@
# $NetBSD: Makefile,v 1.136 2012/08/10 12:11:30 joerg Exp $
.include <bsd.own.mk>
#SUBDIR+= bc
#SUBDIR+= c89 c99
#SUBDIR+= dc diffutils gkermit
SUBDIR+= texinfo
.if !defined(__MINIX)
.if ${MKBSDGREP} == "no"
SUBDIR+= grep
.endif
.if ${MKGROFF} != "no"
SUBDIR+= groff
.endif
SUBDIR+= gettext
.if ${MKGDB} != "no"
.if ${HAVE_GDB} == "6"
SUBDIR+= gdb6
.endif
.endif
.if ${MKGCC} != "no"
.if ${HAVE_GCC} == 4
.if ${MKGCCCMDS} != "no"
SUBDIR+= gcc4
.endif
.endif
.endif
.endif #!defined(__MINIX)
.include <bsd.subdir.mk>

3
gnu/usr.bin/Makefile.inc Normal file
View File

@ -0,0 +1,3 @@
# $NetBSD: Makefile.inc,v 1.3 1997/10/25 10:10:19 lukem Exp $
BINDIR?= /usr/bin

View File

@ -0,0 +1,46 @@
# $NetBSD: Makefile,v 1.23 2008/10/25 22:35:36 apb Exp $
.include <bsd.own.mk>
SUBDIR= makedoc .WAIT common .WAIT info infokey install-info makeinfo \
texi2dvi texindex
.if ${MKSHARE} != "no"
FILESDIR= /usr/share/misc
FILES= epsf.tex texinfo.cat texinfo.dtd texinfo.tex texinfo.xsl
VERSION!= ${TOOL_SED} -n "s/^\#define VERSION \"\(.*\)\"/\1/p" \
${NETBSDSRCDIR}/gnu/usr.bin/texinfo/common/config.h
texinfo.cat: texinfo-cat.in
${TOOL_SED} 's/__VERSION__/${VERSION}/g' ${.ALLSRC} >${.TARGET}
realall: texinfo.cat
CLEANFILES+= texinfo.cat
.endif
.if ${MKNLS} != "no"
.for F in cs.gmo da.gmo de.gmo de_AT.gmo eo.gmo fr.gmo he.gmo hr.gmo ja.gmo \
nb.gmo nl.gmo no.gmo pl.gmo ro.gmo ru.gmo sv.gmo tr.gmo zh_CN.gmo zh_TW.gmo
FILES+= ${F}
FILESDIR_${F}= /usr/share/locale/${F:.gmo=}/LC_MESSAGES
FILESNAME_${F}= texinfo.mo
.endfor
# XXX: Do we want to install the following files too?
#FILES+= txi-cs.tex txi-de.tex txi-en.tex txi-es.tex txi-fr.tex txi-it.tex \
# txi-nl.tex txi-no.tex txi-pt.tex txi-tr.tex
.endif
MAN= info.5 texinfo.5
TEXINFO= info-stnd.texi info.texi texinfo.txi
DIST= ${NETBSDSRCDIR}/gnu/dist
IDIST= ${DIST}/texinfo
INFOFLAGS= -I${IDIST}/doc
.PATH: ${IDIST} ${IDIST}/doc ${IDIST}/po ${IDIST}/util
.include <bsd.info.mk>
.include <bsd.prog.mk>
.include <bsd.subdir.mk>

View File

@ -0,0 +1,32 @@
# $NetBSD: Makefile.inc,v 1.10 2011/05/26 12:56:29 joerg Exp $
.if !defined(__MAKEFILE_INC_INCLUDED__)
__MAKEFILE_INC_INCLUDED__=1
.include <bsd.own.mk>
DIST= ${NETBSDSRCDIR}/gnu/dist
IDIST= ${DIST}/texinfo
CPPFLAGS+= -I${.CURDIR}/../common -I${IDIST}/lib \
-DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H
CWARNFLAGS.clang+= -Wno-format-security
.if !defined(MAKEDOC)
DPADD+= ${LIBCOMMONDIR}/libcommon.a
LDADD+= -L${LIBCOMMONDIR} -lcommon
.if !defined(__MINIX)
DPADD+= ${LIBINTL}
LDADD+= -lintl
.endif # !defined(__MINIX)
LIBCOMMONDIR!= cd ${.CURDIR}/../common && ${PRINTOBJDIR}
.endif
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
.endif # __MAKEFILE_INC_INCLUDED__

View File

@ -0,0 +1,36 @@
# $NetBSD: Makefile,v 1.13 2008/09/03 11:58:30 lukem Exp $
.include "../Makefile.inc"
LIBISPRIVATE= yes
LIB= common
SRCS+= substring.c xexit.c xmalloc.c xstrdup.c key.c doc.c
CPPFLAGS+= -DGNULOCALEDIR=\"/usr/share/locale\" \
-DLOCALE_ALIAS_PATH=\"/usr/share/locale:.\" \
-I${IDIST}/info
.include <bsd.lib.mk>
.PATH: ${IDIST}/lib ${IDIST}/po
all: ${FILES}
.SUFFIXES: .gmo .mo
.gmo.mo:
${_MKTARGET_CREATE}
@cp $< $@
GEN_SRCS = funs.h key.c doc.c
CLEANFILES+= ${GEN_SRCS}
CMD_SRCS = session.c echo-area.c infodoc.c m-x.c indices.c nodemenu.c \
footnotes.c variables.c
MAKEDOCDIR!=cd ${.CURDIR}/../makedoc && ${PRINTOBJDIR}
MAKEDOC=${MAKEDOCDIR}/makedoc
${GEN_SRCS}: ${MAKEDOC} ${CMD_SRCS}
${_MKMSG_CREATE} ${GEN_SRCS}
${.ALLSRC}
.PATH: ${IDIST}/info ${IDIST}/doc

View File

@ -0,0 +1,423 @@
/* config.h. Generated by configure. */
/* config.in. Generated from configure.ac by autoheader. */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
/* #undef CRAY_STACKSEG_END */
/* Define to 1 if using `alloca.c'. */
/* #undef C_ALLOCA */
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#ifndef HOSTTOOL
/* #undef ENABLE_NLS */
#endif
/* Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>. */
/* #undef GWINSZ_IN_SYS_IOCTL */
/* Define to 1 if you have `alloca', as a function or macro. */
/* #undef HAVE_ALLOCA */
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
/* #undef HAVE_ALLOCA_H */
/* Define to 1 if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define to 1 if you have the `asprintf' function. */
#define HAVE_ASPRINTF 1
/* Define to 1 if you have the `bzero' function. */
#define HAVE_BZERO 1
/* Define if the GNU dcgettext() function is already present or preinstalled.
*/
/* #undef HAVE_DCGETTEXT */
/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
don't. */
#define HAVE_DECL_FEOF_UNLOCKED 0
/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
you don't. */
#define HAVE_DECL_FGETS_UNLOCKED 0
/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
don't. */
#define HAVE_DECL_GETC_UNLOCKED 1
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
*/
#define HAVE_DECL_GETENV 1
/* Define to 1 if you have the declaration of `memchr', and to 0 if you don't.
*/
#define HAVE_DECL_MEMCHR 1
/* Define to 1 if you have the declaration of `strcoll', and to 0 if you
don't. */
#define HAVE_DECL_STRCOLL 1
/* Define to 1 if you have the declaration of `strerror', and to 0 if you
don't. */
#define HAVE_DECL_STRERROR 1
/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
don't. */
#define HAVE_DECL__SNPRINTF 0
/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you
don't. */
#define HAVE_DECL__SNWPRINTF 0
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
/* #undef HAVE_DOPRNT */
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the `fwprintf' function. */
#define HAVE_FWPRINTF 1
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* Define to 1 if you have the `getegid' function. */
#define HAVE_GETEGID 1
/* Define to 1 if you have the `geteuid' function. */
#define HAVE_GETEUID 1
/* Define to 1 if you have the `getgid' function. */
#define HAVE_GETGID 1
/* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1
/* Define if the GNU gettext() function is already present or preinstalled. */
/* #undef HAVE_GETTEXT */
/* Define to 1 if you have the `gettimeofday' function. */
/* #undef HAVE_GETTIMEOFDAY */
/* Define to 1 if you have the `getuid' function. */
#define HAVE_GETUID 1
/* Define if you have the iconv() function. */
#define HAVE_ICONV 1
/* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */
#define HAVE_INTMAX_T 1
/* Define if <inttypes.h> exists and doesn't clash with <sys/types.h>. */
#define HAVE_INTTYPES_H 1
/* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and
declares uintmax_t. */
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
/* Define to 1 if you have the <io.h> header file. */
/* #undef HAVE_IO_H */
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
#define HAVE_LANGINFO_CODESET 1
/* Define if your <locale.h> file defines LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if you have the `bsd' library (-lbsd). */
/* #undef HAVE_LIBBSD */
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the 'long double' type. */
#define HAVE_LONG_DOUBLE 1
/* Define if you have the 'long long' type. */
#define HAVE_LONG_LONG 1
/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define to 1 if you have the `memcpy' function. */
#define HAVE_MEMCPY 1
/* Define to 1 if you have the `memmove' function. */
#define HAVE_MEMMOVE 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `mempcpy' function. */
/* #undef HAVE_MEMPCPY */
/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1
/* Define to 1 if you have the `mkstemp' function. */
#define HAVE_MKSTEMP 1
/* Define to 1 if you have a working `mmap' system call. */
/* #undef HAVE_MMAP */
/* Define to 1 if you have the `munmap' function. */
/* #undef HAVE_MUNMAP */
/* Define to 1 if you have the <ncurses/termcap.h> header file. */
/* #undef HAVE_NCURSES_TERMCAP_H */
/* Define to 1 if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_H 1
/* Define if your printf() function supports format strings with positions. */
#define HAVE_POSIX_PRINTF 1
/* Define to 1 if you have the `putenv' function. */
#define HAVE_PUTENV 1
/* Define to 1 if you have the <pwd.h> header file. */
#define HAVE_PWD_H 1
/* Define to 1 if you have the `setenv' function. */
#define HAVE_SETENV 1
/* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1
/* Define to 1 if you have the `setvbuf' function. */
#define HAVE_SETVBUF 1
/* Define to 1 if you have the `sigaction' function. */
#define HAVE_SIGACTION 1
/* Define to 1 if you have the `sigprocmask' function. */
#define HAVE_SIGPROCMASK 1
/* Define to 1 if you have the `sigsetmask' function. */
#define HAVE_SIGSETMASK 1
/* Define to 1 if you have the `snprintf' function. */
#define HAVE_SNPRINTF 1
/* Define to 1 if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares
uintmax_t. */
#define HAVE_STDINT_H_WITH_UINTMAX 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `stpcpy' function. */
/* #undef HAVE_STPCPY */
/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the `strcoll' function and it is properly defined.
*/
#define HAVE_STRCOLL 1
/* Define to 1 if you have the `strdup' function. */
#define HAVE_STRDUP 1
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strncasecmp' function. */
#define HAVE_STRNCASECMP 1
/* Define to 1 if you have the `strtoul' function. */
#define HAVE_STRTOUL 1
/* Define to 1 if you have the <sys/fcntl.h> header file. */
#define HAVE_SYS_FCNTL_H 1
/* Define to 1 if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/ptem.h> header file. */
/* #undef HAVE_SYS_PTEM_H */
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/stream.h> header file. */
/* #undef HAVE_SYS_STREAM_H */
/* Define to 1 if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the <sys/ttold.h> header file. */
/* #undef HAVE_SYS_TTOLD_H */
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <sys/wait.h> header file. */
#define HAVE_SYS_WAIT_H 1
/* Define to 1 if you have the <termcap.h> header file. */
#define HAVE_TERMCAP_H 1
/* Define to 1 if you have the <termios.h> header file. */
#define HAVE_TERMIOS_H 1
/* Define to 1 if you have the <termio.h> header file. */
/* #undef HAVE_TERMIO_H */
/* Define to 1 if you have the `tsearch' function. */
#define HAVE_TSEARCH 1
/* Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>. */
#define HAVE_UINTMAX_T 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the 'unsigned long long' type. */
#define HAVE_UNSIGNED_LONG_LONG 1
/* Define to 1 if you have the `vprintf' function. */
#define HAVE_VPRINTF 1
/* Define if you have the 'wchar_t' type. */
#define HAVE_WCHAR_T 1
/* Define to 1 if you have the `wcslen' function. */
#define HAVE_WCSLEN 1
/* Define if you have the 'wint_t' type. */
#define HAVE_WINT_T 1
/* Define to 1 if you have the `__argz_count' function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define to 1 if you have the `__argz_next' function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define to 1 if you have the `__argz_stringify' function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define to 1 if you have the `__fsetlocking' function. */
/* #undef HAVE___FSETLOCKING */
/* Define to 1 if you have the `__secure_getenv' function. */
/* #undef HAVE___SECURE_GETENV */
/* Define as const if the declaration of iconv() needs const. */
#define ICONV_CONST const
/* Define if integer division by zero raises signal SIGFPE. */
#define INTDIV0_RAISES_SIGFPE 1
/* Name of package */
#define PACKAGE "texinfo"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME "GNU Texinfo"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "GNU Texinfo 4.8"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "texinfo"
/* Define to the version of this package. */
#define PACKAGE_VERSION "4.8"
/* Define if <inttypes.h> exists and defines unusable PRI* macros. */
/* #undef PRI_MACROS_BROKEN */
/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void
/* Define as the maximum value of type 'size_t', if the system doesn't define
it. */
/* #undef SIZE_MAX */
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
/* #undef STAT_MACROS_BROKEN */
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
/* #undef TM_IN_SYS_TIME */
/* Version number of package */
#define VERSION "4.8"
/* Define to 1 if on MINIX. */
/* #undef _MINIX */
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
/* #undef _POSIX_1_SOURCE */
/* Define to 1 if you need to in order for `stat' and other things to work. */
/* #undef _POSIX_SOURCE */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to rpl_mkstemp if the replacement function should be used. */
/* #undef mkstemp */
/* Define to `long' if <sys/types.h> does not define. */
/* #undef off_t */
/* Define as the type of the result of subtracting two pointers, if the system
doesn't define it. */
/* #undef ptrdiff_t */
/* Define to empty if the C compiler doesn't support this keyword. */
/* #undef signed */
/* Define to `unsigned' if <sys/types.h> does not define. */
/* #undef size_t */
/* Define to unsigned long or unsigned long long if <stdint.h> and
<inttypes.h> don't define. */
/* #undef uintmax_t */

View File

@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.6 2010/02/03 15:34:39 roy Exp $
.include <bsd.own.mk>
PROG= info
SRCS= dir.c display.c dribble.c echo-area.c filesys.c \
footnotes.c gc.c indices.c info-utils.c info.c infodoc.c \
infomap.c m-x.c man.c nodemenu.c nodes.c search.c session.c \
signals.c terminal.c tilde.c variables.c window.c
COMMONDIR!=cd ${.CURDIR}/../common && ${PRINTOBJDIR}
CPPFLAGS+= -I${IDIST}/info -I${COMMONDIR} \
-DDEFAULT_INFOPATH=\"/usr/pkg/info:/usr/X11R6/info:/usr/X11/info:/usr/local/info:/usr/share/info:/usr/info\"
LDADD+= -lterminfo
DPADD+= ${LIBTERMINFO}
.include <bsd.prog.mk>
.PATH: ${IDIST}/info ${IDIST}/doc

View File

@ -0,0 +1,10 @@
# $NetBSD: Makefile,v 1.3 2008/09/02 08:38:36 christos Exp $
PROG= infokey
SRCS= infokey.c
CPPFLAGS+= -I${IDIST}/info
.include <bsd.prog.mk>
.PATH: ${IDIST}/info ${IDIST}/doc

View File

@ -0,0 +1,14 @@
# $NetBSD: Makefile,v 1.10 2004/02/09 06:52:34 lukem Exp $
PROG= install-info
SRCS= install-info.c
.include <bsd.prog.mk>
.PATH: ${IDIST}/util ${IDIST}/doc
infodir-meta:
.if (${MKUNPRIVED} != "no" && ${MKINFO} != "no")
echo "./usr/share/info/dir type=file mode=0644 uname=${BINOWN} gname=${BINGRP}" \
| ${METALOG.add}
.endif

View File

@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.4 2008/09/09 06:31:33 lukem Exp $
NOMAN=
MAKEDOC=
.include "../Makefile.inc"
HOSTPROG= makedoc
SRCS= makedoc.c xexit.c xmalloc.c xstrdup.c
.PATH: ${IDIST}/info ${IDIST}/lib
HOST_CPPFLAGS+= -I${IDIST}/info -I${IDIST}/lib -I${.CURDIR}/../common
HOST_CPPFLAGS+= -DHOSTTOOL
.include <bsd.hostprog.mk>

View File

@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.7 2011/05/26 12:56:29 joerg Exp $
PROG= makeinfo
SRCS= cmds.c defun.c files.c float.c footnote.c \
html.c index.c insertion.c lang.c \
macro.c makeinfo.c multi.c node.c \
sectioning.c toc.c xml.c xref.c
CPPFLAGS+= -I${IDIST}/makeinfo
WARNS?= 0 # pointer sign issues
.include <bsd.prog.mk>
.PATH: ${IDIST}/makeinfo ${IDIST}/doc

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
# $NetBSD: Makefile,v 1.4 2003/01/17 15:32:25 wiz Exp $
FILES= texi2dvi
FILESMODE= ${BINMODE}
MAN= texi2dvi.1
.include <bsd.prog.mk>
.PATH: ${IDIST}/util ${IDIST}/doc

View File

@ -0,0 +1,8 @@
# $NetBSD: Makefile,v 1.4 2003/01/17 15:32:25 wiz Exp $
PROG= texindex
SRCS= texindex.c
.include <bsd.prog.mk>
.PATH: ${IDIST}/util ${IDIST}/doc

View File

@ -58,6 +58,10 @@
2012/10/17 12:00:00,external/Makefile
2011/05/26 00:00:00,external/public-domain/xz
2012/10/17 12:00:00,external/README
2012/10/17 12:00:00,gnu/dist/texinfo
2012/10/17 12:00:00,gnu/usr.bin/texinfo
2012/10/17 12:00:00,gnu/Makefile
2012/10/17 12:00:00,gnu/README
2012/10/17 12:00:00,include
2012/10/17 12:00:00,libexec/ld.elf_so
2012/10/17 12:00:00,libexec/Makefile
@ -119,6 +123,7 @@
2012/10/17 12:00:00,tools/mtree
2012/10/17 12:00:00,tools/nbperf
2012/10/17 12:00:00,tools/sed
2012/10/17 12:00:00,tools/texinfo
2012/10/17 12:00:00,tools/tic
2012/10/17 12:00:00,tools/tsort
2009/05/08 12:48:43,usr.bin/apropos

View File

@ -63,6 +63,7 @@ SUBDIR= host-mkdep .WAIT compat .WAIT \
genassym join \
lorder makewhatis mkdep mtree nbperf .WAIT tsort \
m4 \
.WAIT texinfo \
.WAIT mkfs.mfs \
.WAIT yacc \
.WAIT awk \

View File

@ -35,7 +35,7 @@ GNUHOSTDIST?= ${.CURDIR}/../../gnu/dist/${MODULE}
${GNUHOSTDIST:H}/.gitignore: ${GNUHOSTDIST:H}/fetch.sh
${HOST_SH} ${GNUHOSTDIST:H}/fetch.sh
@test -e ${GNUHOSTDIST}/configure
@echo "${MODULE:U${.CURDIR:T:C,^gcc[0-9]*$,gcc,}}-*.tar.*z*" > $@
@echo "${MODULE:U${.CURDIR:T}:C,gcc[0-9]*,gcc,}-*.tar.*z*" >> $@
@echo ${GNUHOSTDIST:T} >> $@
_gnu_get_src=${GNUHOSTDIST:H}/.gitignore
.endif # exists(GNUHOSTDIST:H/fetch.sh) on MINIX

7
tools/texinfo/Makefile Normal file
View File

@ -0,0 +1,7 @@
# $NetBSD: Makefile,v 1.9 2002/12/08 20:20:05 thorpej Exp $
MODULE= texinfo
CONFIGURE_ARGS= --program-prefix=${_TOOL_PREFIX}
.include "${.CURDIR}/../Makefile.gnuhost"