[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [OATH-Toolkit-help] fix check for pskctool -h output
From: |
Simon Josefsson |
Subject: |
Re: [OATH-Toolkit-help] fix check for pskctool -h output |
Date: |
Thu, 10 Jan 2013 14:57:03 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Christian Hesse <address@hidden> writes:
> Hello everybody,
>
> check for pskctool -h output fails for me. The attached patch fixes that for
> me.
Which gengetopt version are you using? Since the selfcheck compares
output that is generated by gengetopt, I suspect the difference is
caused by using different gengetopt versions. Could you try the patch
below instead? It removes trailing newlines from the generated file.
/Simon
diff --git a/libpskc/examples/Makefile.am b/libpskc/examples/Makefile.am
index f881cd6..a95dd38 100644
--- a/libpskc/examples/Makefile.am
+++ b/libpskc/examples/Makefile.am
@@ -43,7 +43,7 @@ pskc-hotp-signed.xml: $(srcdir)/pskc-hotp.xml
mv tmp $@
pskctool-h.txt: $(top_srcdir)/../pskctool/pskctool.ggo
$(top_srcdir)/../pskctool/pskctool.c
- $(top_builddir)/../pskctool/pskctool | sed '1,2d' > tmp 2>&1
+ $(top_builddir)/../pskctool/pskctool | sed '1,2d;s/ \+$$//' > tmp 2>&1
mv tmp $@
pskc-figure6-debug.txt: $(top_srcdir)/../pskctool/tests/pskc-figure6.xml