mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dbtoman: Improve readability
This commit is contained in:
parent
2fb1f12654
commit
7d6a4ae645
1 changed files with 16 additions and 17 deletions
|
@ -41,17 +41,10 @@ TPT_LIB=$CDETOP/doc/util/dbtoman/transpec
|
|||
export TPT_LIB
|
||||
|
||||
PARSER=$CDETOP/programs/nsgmls/nsgmls
|
||||
if [ -x $PARSER ]
|
||||
then
|
||||
PARSER_OPTS="-g -oline -wno-idref"
|
||||
SGML_CATALOG_FILES="$SGML/catalog"
|
||||
export SGML_CATALOG_FILES
|
||||
else
|
||||
PARSER=$CDETOP/programs/dtdocbook/sgmls/sgmls
|
||||
PARSER_OPTS="-gl"
|
||||
SGML_PATH="$SGML/%P:$SGML/%S:%S"
|
||||
export SGML_PATH
|
||||
fi
|
||||
|
||||
INSTANT=$CDETOP/doc/util/dbtoman/instant/instant
|
||||
INSTANT_OPT=-d
|
||||
|
||||
|
@ -59,7 +52,7 @@ DECL=$CDETOP/programs/dtdocbook/doc2sdl/docbook.sgml
|
|||
|
||||
NROFF=
|
||||
|
||||
if [ $# -gt 0 -a $1 = "-c" ]
|
||||
if [ $# -gt 0 ] && [ $1 = "-c" ]
|
||||
then
|
||||
NROFF="| tbl | nroff -man"
|
||||
shift
|
||||
|
@ -76,7 +69,8 @@ cat > /tmp/dtm.$$.psinc <<\!
|
|||
'\" t
|
||||
!
|
||||
|
||||
grep '<\!-- $''XConsortium: ' $REFFILE | sed -e 's/<\!-- $''XConsortium:/...\\"/g' -e 's/ -->//g' >> /tmp/dtm.$$.psinc
|
||||
grep '<\!-- $''XConsortium: ' $REFFILE | \
|
||||
sed -e 's/<\!-- $''XConsortium:/...\\"/g' -e 's/ -->//g' >> /tmp/dtm.$$.psinc
|
||||
|
||||
cat >> /tmp/dtm.$$.psinc <<\!
|
||||
.de P!
|
||||
|
@ -126,4 +120,9 @@ cat >> /tmp/dtm.$$.psinc <<\!
|
|||
.ds f4\"
|
||||
!
|
||||
|
||||
cat $DECL $DCLFILE $REFFILE | sed -e 's/<\!\[[ ]*\%CDE\.C\.CDE;[ ]*\[<[rR]ef[eE]ntry [iI]d="[^"]*">\]\]>/<refentry>/g' | $PARSER $PARSER_OPTS | $INSTANT $INSTANT_OPT -croff.cmap -sroff.sdata -tdocbook-to-man.ts > /tmp/dtm.$$.out1 && eval cat /tmp/dtm.$$.psinc /tmp/dtm.$$.out1 $NROFF > /tmp/dtm.$$.out2 && cp /tmp/dtm.$$.out2 $MANFILE
|
||||
cat $DECL $DCLFILE $REFFILE | \
|
||||
sed -e 's/<\!\[[ ]*\%CDE\.C\.CDE;[ ]*\[<[rR]ef[eE]ntry [iI]d="[^"]*">\]\]>/<refentry>/g' | \
|
||||
$PARSER $PARSER_OPTS | \
|
||||
$INSTANT $INSTANT_OPT -croff.cmap -sroff.sdata -tdocbook-to-man.ts > \
|
||||
/tmp/dtm.$$.out1 && eval cat /tmp/dtm.$$.psinc /tmp/dtm.$$.out1 $NROFF > \
|
||||
/tmp/dtm.$$.out2 && cp /tmp/dtm.$$.out2 $MANFILE
|
||||
|
|
Loading…
Reference in a new issue