diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-02-14 20:10:48 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-02-14 20:10:48 +0100 |
commit | 0a17bad9d6bc053f7fd52f8af4991a30b76d90ca (patch) | |
tree | d17bdb894de30fd9aeeb81470a5fd5f5a6a21643 | |
parent | ca47b8c78aaa3d97073d76d607eccc22b0766c7a (diff) | |
download | gnutls-0a17bad9d6bc053f7fd52f8af4991a30b76d90ca.tar.gz |
added cleanup-autogen.pl
-rw-r--r-- | doc/scripts/Makefile.am | 2 | ||||
-rwxr-xr-x | doc/scripts/cleanup-autogen.pl | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/scripts/Makefile.am b/doc/scripts/Makefile.am index e2b734e343..73e779064b 100644 --- a/doc/scripts/Makefile.am +++ b/doc/scripts/Makefile.am @@ -17,4 +17,4 @@ # along with this file; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -EXTRA_DIST = gdoc sort2.pl split-texi.pl +EXTRA_DIST = gdoc sort2.pl split-texi.pl cleanup-autogen.pl diff --git a/doc/scripts/cleanup-autogen.pl b/doc/scripts/cleanup-autogen.pl index 7d2d43a010..d7921950b4 100755 --- a/doc/scripts/cleanup-autogen.pl +++ b/doc/scripts/cleanup-autogen.pl @@ -23,6 +23,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}' my $line; my $init = 0; my $menu = 0; +my $i = 0; while ($line = <>) { if ($line =~ /\@node/) { @@ -50,4 +51,11 @@ while ($line = <>) { } print $line; + $i++; } + +if ($i < 2) { + exit 1; +} + +exit 0; |