SF.net SVN: docutils:[9594 ] trunk/sandbox/manpage-wri ter/runtest-man

grubert--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9594
          http://sourceforge.net/p/docutils/code/9594
Author:   grubert
Date:     2024-03-25 22:02:44 +0000 (Mon, 25 Mar 2024)
Log Message:
-----------
reverse testing for nroff

Modified Paths:
--------------
    trunk/sandbox/manpage-writer/runtest-man

Modified: trunk/sandbox/manpage-writer/runtest-man
===================================================================
--- trunk/sandbox/manpage-writer/runtest-man	2024-03-25 22:01:42 UTC (rev 9593)
+++ trunk/sandbox/manpage-writer/runtest-man	2024-03-25 22:02:44 UTC (rev 9594)
@@ -51,10 +51,10 @@
 
     for ENC in $ENCS ; do
       if [ -e $EXP_DIR/$F_BASE.$ENC ] ; then
-        if [ "nroff" != $ENC ] ; then
+        if [ "nroff" = $ENC ] ; then
+          nroff -man $IN_F > $OUT_DIR/$F_BASE.$ENC
+	else
           $CMD -T$ENC $IN_F > $OUT_DIR/$F_BASE.$ENC
-	else
-          nroff -man $IN_F > $OUT_DIR/$F_BASE.$ENC
 	fi
         diff -s -u $EXP_DIR/$F_BASE.$ENC $OUT_DIR/$F_BASE.$ENC
         if [ $? -ne 0 ] ; then

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.