1 #@ Generate real (whitespace normalized) difference of S-roff and GNU roff.
10 [ ${#} -gt 0 ] && WANT
="${*}" || WANT
=
14 [ -z "${WANT}" ] && return 0
15 { i
=${WANT}; echo "_${i}_" | grep "_${1}_"; } >/dev
/null
2>&1
19 if [ -f ${LDIRBASE}${LDIR}/${1} ]; then
20 $DIFF ${LDIRBASE}${LDIR}/${1} /dev
/null
22 echo >&2 '============'
23 echo >&2 "new no file=${1} in LDIR=${LDIR}"
24 echo >&2 '============'
30 if [ -f ${LDIRBASE}${LDIR}/${1} ] &&
31 [ -f ${GDIRBASE}${GDIR}/${1} ]; then
32 ${DIFF} ${LDIRBASE}${LDIR}/${1} ${GDIRBASE}${GDIR}/${1}
34 echo >&2 '============'
35 echo >&2 "eqd no file=${1} in LDIR=${LDIR} or GDIR=${GDIR}"
36 echo >&2 '============'
42 if [ -f ${LDIRBASE}${LDIR}/${1} ] &&
43 [ -f ${GDIRBASE}${GDIR}/${2} ]; then
44 ${DIFF} ${LDIRBASE}${LDIR}/${1} ${GDIRBASE}${GDIR}/${2}
45 elif [ -f ${LDIRBASE}${LDIR}/${1} ]; then
46 echo >&2 '============'
47 echo >&2 "ned no GDIR=${GDIR}/${2}"
48 echo >&2 '============'
51 echo >&2 '============'
52 echo >&2 "ned no LDIR=${LDIR}/${1} (at least)"
53 echo >&2 '============'
59 if should include
; then
60 LDIR
=include GDIR
=src
/${LDIR}
101 if should dev-dvi
; then
102 GDIR
=src
/devices
/grodvi
109 ned dev-dvi
.1.
in grodvi.man
114 if should dev-html
; then
115 GDIR
=src
/devices
/grohtml
128 ned dev-html
.1.
in grohtml.man
133 if should dev-ps
; then
134 GDIR
=src
/devices
/grops
143 ned dev-ps
.1.
in grops.man
148 if should dev-tty
; then
149 GDIR
=src
/devices
/grotty
156 ned dev-tty
.1.
in grotty.man
161 if should lib-bib
; then
173 if should lib-driver
; then
174 GDIR
=src
/libs
/libdriver
181 if should lib-roff
; then
182 GDIR
=src
/libs
/libgroff
210 ned make-uniuni.sh make-uniuni
240 LDIR
=src
/lib-snprintf
241 if should lib-snprintf
; then
242 GDIR
=src
/libs
/snprintf
248 if should nroff
; then
251 ned nroff.sh.
in nroff.sh
255 ned src-nroff
.1.
in nroff.man
260 if should pre-eqn
; then
274 ned neqn.sh.
in neqn.sh
286 ned pre-eqn
.1.
in eqn.man
287 ned pre-neqn
.1.
in neqn.man
292 if should pre-grn
; then
305 ned pre-grn
.1.
in grn.man
310 if should pre-html
; then
311 GDIR
=src
/preproc
/html
321 if should pre-pic
; then
341 ned pre-pic
.1.
in pic.man
346 if should pre-preconv
; then
347 GDIR
=src
/preproc
/preconv
349 new preconv-config.h.
in
354 ned pre-preconv
.1.
in preconv.man
359 if should pre-refer
; then
360 GDIR
=src
/preproc
/refer
362 new refer-config.h.
in
365 ned label.y label.ypp
375 ned pre-refer
.1.
in refer.man
380 if should pre-soelim
; then
381 GDIR
=src
/preproc
/soelim
383 new soelim-config.h.
in
388 ned pre-soelim
.1.
in soelim.man
393 if should pre-tbl
; then
403 ned pre-tbl
.1.
in tbl.man
414 ned roff.cpp
groff.cpp
418 ned src-roff
.1.
in groff.man
423 if should troff
; then
451 ned src-troff
.1.
in troff.man
455 LDIR
=src
/ute-addftinfo
456 if should ute-addftinfo
; then
457 GDIR
=src
/utils
/addftinfo
459 new addftinfo-config.h.
in
466 ned ute-addftinfo
.1.
in addftinfo.man
470 LDIR
=src
/ute-afmtodit
471 if should ute-afmtodit
; then
472 GDIR
=src
/utils
/afmtodit
474 ned afmtodit.pl.
in afmtodit.pl
476 eqd make-afmtodit-tables
480 ned ute-afmtodit
.1.
in afmtodit.man
485 if should ute-indxbib
; then
486 GDIR
=src
/utils
/indxbib
488 new indxbib-config.h.
in
494 ned ute-indxbib
.1.
in indxbib.man
499 if should ute-lkbib
; then
502 new lkbib-config.h.
in
507 ned ute-lkbib
.1.
in lkbib.man
512 if should ute-lookbib
; then
513 GDIR
=src
/utils
/lookbib
520 ned ute-lookbib
.1.
in lookbib.man
525 if should ute-pfbtops
; then
526 GDIR
=src
/utils
/pfbtops
533 ned ute-pfbtops
.1.
in pfbtops.man
537 LDIR
=src
/ute-tfmtodit
538 if should ute-tfmtodit
; then
539 GDIR
=src
/utils
/tfmtodit
541 new tfmtodit-config.h
546 ned ute-tfmtodit
.1.
in tfmtodit.man
553 LDIR
=font GDIR
=${LDIR}/util
556 LDIR
=font
/dev-ascii GDIR
=font
/devascii
557 ned DESC.proto.
in DESC.proto
560 LDIR
=font
/dev-cp1047 GDIR
=font
/devcp1047
561 ned DESC.proto.
in DESC.proto
564 LDIR
=font
/dev-dvi GDIR
=font
/devdvi
603 LDIR
=font
/dev-dvi
/generate GDIR
=font
/devdvi
/generate
604 ned compile.sh CompileFonts
618 LDIR
=font
/dev-html GDIR
=font
/devhtml
619 ned DESC.proto.
in DESC.proto
623 LDIR
=font
/dev-latin1 GDIR
=font
/devlatin1
624 ned DESC.proto.
in DESC.proto
627 LDIR
=font
/dev-ps GDIR
=font
/devps
679 LDIR
=font
/dev-ps
/generate GDIR
=font
/devps
/generate
694 LDIR
=font
/dev-utf8 GDIR
=font
/devutf8
695 ned DESC.proto.
in DESC.proto
703 LDIR
=tmac GDIR
=${LDIR}
720 ned doc.tmac doc.tmac-u
747 ned mdoc-common doc-common-u
748 ned mdoc-ditroff doc-ditroff-u
749 ned mdoc-nroff doc-nroff-u
750 ned mdoc-syms doc-syms-u
775 ned www.tmac www.tmac.
in
779 ned tmac-man
.7.
in groff_man.man
780 ned tmac-mdoc
.7.
in groff_mdoc.man
781 ned tmac-me
.7.
in groff_me.man
782 ned tmac-ms
.7.
in groff_ms.man
783 ned tmac-trace
.7.
in groff_trace.man
784 ned tmac-www
.7.
in groff_www.man
788 # man (only the remains not handled by the others)
789 if should man
&& ${MANUALS}; then
790 LDIR
=man GDIR
=${LDIR}
792 ned l_ditroff
.7.
in ditroff.man
793 ned l_roff
.7.
in groff.man
794 ned l_roff-char
.7.
in groff_char.man
795 ned l_roff-diff
.7.
in groff_diff.man
796 ned l_roff-font
.5.
in groff_font.man
797 ned l_roff-history
.7.
in roff.man
798 ned l_roff-out
.5.
in groff_out.man
799 ned l_roff-tmac
.5.
in groff_tmac.man
803 if should doc
&& ${MANUALS}; then
804 LDIR
=doc GDIR
=${LDIR}
808 #ned groff.texinfo groff.texi
809 ned meintro.me.
in meintro.me
810 ned meref.me.
in meref.me
817 if should hdtbl
; then
818 LDIR
=contrib
/hdtbl GDIR
=${LDIR}
820 ned hdtbl.tmac hdtbl.tmac-u
821 ned hdmisc.tmac hdmisc.tmac-u
823 ned hdtbl
.7.
in groff_hdtbl.man
826 LDIR
=${LDIR}/examples GDIR
=${GDIR}/examples
829 eqd col_rowspan_colors.roff
831 eqd color_nested_tables.roff
832 eqd color_table_cells.roff
833 eqd color_transitions.roff
834 ned common.tmac common.roff
837 ned mixed_pickles.roff.
in mixed_pickles.roff
839 eqd short_reference.roff
843 if should pdfmark
; then
844 LDIR
=contrib
/pdfmark GDIR
=${LDIR}
847 ned pdfmark.ms.
in pdfmark.ms
849 ned pdfroff.sh.
in pdfroff.sh
852 ned pdfroff
.1.
in pdfroff.man