From: Tim Mann Date: Mon, 10 Nov 2003 07:18:08 +0000 (+0000) Subject: Removed comment.in/comment.awk from distribution. It hasn't really been X-Git-Tag: v4.2.7~14 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=dc086ff27e0f5a8911a399feb603ac7b96e41390;p=xboard.git Removed comment.in/comment.awk from distribution. It hasn't really been useful for a long time. --- diff --git a/Makefile.in b/Makefile.in index f7c0cda..de78c84 100644 --- a/Makefile.in +++ b/Makefile.in @@ -43,7 +43,7 @@ NROFFFLAGS = @NROFFFLAGS@ DISTSOURCE = COPYING COPYRIGHT ChangeLog ChangeLog.2 FAQ FAQ.html \ INSTALL Makefile.in READ_ME ToDo backend.c backend.h \ backendz.h bitmaps bitmaps.xchess childio.c childio.h cmail.in \ - cmail.man comment.in common.h config.guess config.sub \ + cmail.man common.h config.guess config.sub \ configure configure.in engine-intf.html frontend.h gamelist.c \ ics-parsing.txt install-sh kk13.pgn lists.c \ lists.h mkinstalldirs moves.c moves.h parser.h parser.l pgntags.c \ @@ -98,7 +98,7 @@ clean: distclean: clean tidy rm -f config.cache config.log config.status Makefile - rm -f config.h stamp-h xboard.texinfo cmail comment.awk + rm -f config.h stamp-h xboard.texinfo cmail cd winboard ; make -f cygwin.mak clean mostlyclean: clean diff --git a/comment.in b/comment.in deleted file mode 100644 index 7354c52..0000000 --- a/comment.in +++ /dev/null @@ -1,42 +0,0 @@ -#! @AWKPATH@ -f -# -# Preprocessor for chess games that are formatted as blocks of moves -# interspersed with blocks of text, separated by blank lines. Finds -# the blocks of text and encloses them with "{ }" brackets so that -# xboard's game parser can identify them as comments. Many games are -# posted to rec.games.chess in this format. -# -# Limitation: Fails if a text block starts with a numbered move. In -# that case you'll have to hand-edit the output. -# -BEGIN { - inmoves = 0; - blankline = 1; -} - -{ - if (NF == 0) { - blankline = 1; - } else if (blankline) { - blankline = 0; - if ($1 ~ /^[0-9]+/) { - if (!inmoves) { - inmoves = 1; - print "}"; - } else { - print ""; - } - } else { - if (inmoves) { - inmoves = 0; - print "{"; - } else { - print "}{"; - } - } - print $0; - } else { - print $0; - } -} - diff --git a/configure b/configure index 8f7d883..313a631 100755 --- a/configure +++ b/configure @@ -6640,7 +6640,7 @@ _ACEOF - ac_config_files="$ac_config_files Makefile comment.awk:comment.in cmail xboard.texinfo" + ac_config_files="$ac_config_files Makefile cmail xboard.texinfo" ac_config_commands="$ac_config_commands default" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -7170,7 +7170,6 @@ do case "$ac_config_target" in # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "comment.awk" ) CONFIG_FILES="$CONFIG_FILES comment.awk:comment.in" ;; "cmail" ) CONFIG_FILES="$CONFIG_FILES cmail" ;; "xboard.texinfo" ) CONFIG_FILES="$CONFIG_FILES xboard.texinfo" ;; "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; @@ -7788,7 +7787,7 @@ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in default ) test -z "$CONFIG_HEADERS" || date > stamp-h -chmod 755 comment.awk cmail +chmod 755 cmail ;; esac done diff --git a/configure.in b/configure.in index 7d831e5..e5f5936 100644 --- a/configure.in +++ b/configure.in @@ -315,7 +315,7 @@ AC_SUBST(PRODUCT) AC_SUBST(VERSION) AC_SUBST(PATCHLEVEL) -AC_OUTPUT(Makefile comment.awk:comment.in cmail xboard.texinfo, +AC_OUTPUT(Makefile cmail xboard.texinfo, [test -z "$CONFIG_HEADERS" || date > stamp-h -chmod 755 comment.awk cmail +chmod 755 cmail ])