From: kristaps@bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Skip first line when comparing output.
Date: Sun, 16 May 2010 14:02:11 -0400 (EDT) [thread overview]
Message-ID: <201005161802.o4GI2B3O030476@krisdoz.my.domain> (raw)
Log Message:
-----------
Skip first line when comparing output.
Modified Files:
--------------
mdocml/regress:
regress.sh
Revision Data
-------------
Index: regress.sh
===================================================================
RCS file: /home/joerg/cvsroot/mdocml/regress/regress.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -Lregress/regress.sh -Lregress/regress.sh -u -p -r1.3 -r1.4
--- regress/regress.sh
+++ regress/regress.sh
@@ -23,7 +23,9 @@ for file in */*.in */*/*.in; do
printf "%s: " "$file"
${MANDOC} "$file" > test.mandoc 2> /dev/null
${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null
- if cmp -s test.mandoc test.nroff; then
+ mandoclen=`head -n 1 test.mandoc | wc -c`
+ nrofflen=`head -n 1 test.nroff | wc -c`
+ if cmp -s test.mandoc test.nroff $mandoclen $nrofflen; then
rm -f test.mandoc test.nroff
echo "passed"
pass=`expr $pass + 1`
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2010-05-16 18:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201005161802.o4GI2B3O030476@krisdoz.my.domain \
--to=kristaps@bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).