AC_PREREQ(2.57)
AC_INIT([gnushogi],[1.4.0+],[https://savannah.gnu.org/bugs/?group=gnushogi])
-AC_CONFIG_SRCDIR([version.h])
+AC_CONFIG_SRCDIR([gnushogi/gnushogi.h])
AC_CONFIG_HEADER(config.h)
##########
gnushogi: $(GNUSHOGI_FILES)
pat2inc: $(PAT2INCFILES)
sizetest: sizetest.o
-attacks.o: attacks.c gnushogi.h $(ROOT)/version.h
-book.o: book.c gnushogi.h $(ROOT)/version.h
-commondsp.o: commondsp.c gnushogi.h $(ROOT)/version.h
-cursesdsp.o: cursesdsp.c gnushogi.h $(ROOT)/version.h
-dspwrappers.o: dspwrappers.c gnushogi.h $(ROOT)/version.h
-genmove.o: genmove.c gnushogi.h $(ROOT)/version.h
-globals.o: globals.c gnushogi.h $(ROOT)/version.h
-eval.o: eval.c eval.h gnushogi.h $(ROOT)/version.h $(SRCDIR)/pattern.h
-init.o: init.c gnushogi.h $(ROOT)/version.h $(SRCDIR)/pattern.h
-main.o: main.c gnushogi.h $(ROOT)/version.h
+attacks.o: attacks.c gnushogi.h
+book.o: book.c gnushogi.h
+commondsp.o: commondsp.c gnushogi.h
+cursesdsp.o: cursesdsp.c gnushogi.h
+dspwrappers.o: dspwrappers.c gnushogi.h
+genmove.o: genmove.c gnushogi.h
+globals.o: globals.c gnushogi.h
+eval.o: eval.c eval.h gnushogi.h $(SRCDIR)/pattern.h
+init.o: init.c gnushogi.h $(SRCDIR)/pattern.h
+main.o: main.c gnushogi.h
makepattern.o: pattern.c gnushogi.h $(SRCDIR)/pattern.h
pattern.o: pattern.c gnushogi.h $(SRCDIR)/pattern.h $(SRCDIR)/pattern.inc
-rawdsp.o: rawdsp.c gnushogi.h $(ROOT)/version.h
-search.o: search.c gnushogi.h $(ROOT)/version.h
-tcontrl.o: tcontrl.c gnushogi.h $(ROOT)/version.h
-util.o: util.c gnushogi.h $(ROOT)/version.h
+rawdsp.o: rawdsp.c gnushogi.h
+search.o: search.c gnushogi.h
+tcontrl.o: tcontrl.c gnushogi.h
+util.o: util.c gnushogi.h
pat2inc.o: pat2inc.c $(SRCDIR)/pattern.h $(SRCDIR)/gnushogi.h
sizetest.o: sizetest.c $(SRCDIR)/gnushogi.h $(SRCDIR)/eval.h
gnushogi.bbk: gnushogi
dbuf[16] = '\0';
dbuf[19] = '\0';
- /* use format "CLp16.Jan01-020304B" when patchlevel is 16,
+ /* use format "CL.Jan01-020304B" when
date is Jan 1
time is 02:03:04
program played white */
- sprintf(fname, "CLp%s.%s%s-%s%s%s%c",
- patchlevel, dbuf + 4, dbuf + 8, dbuf + 11, dbuf + 14,
+ sprintf(fname, "CL.%s%s-%s%s%s%c",
+ dbuf + 4, dbuf + 8, dbuf + 11, dbuf + 14,
dbuf + 17, ColorStr[computer][0]);
/* replace space padding with 0 */
exit(1);
}
- fprintf(fd, "gnushogi %sp%s game\n", version, patchlevel);
+ fprintf(fd, "gnushogi %s game\n", PACKAGE_VERSION);
fputs(" score depth nodes time ", fd);
fputs(" score depth nodes time\n", fd);
ShowHeader(void)
{
gotoXY(TAB, 2);
- printw("GNU Shogi %s (pl %s)", version, patchlevel);
+ printw("GNU Shogi %s", PACKAGE_VERSION);
}
Curses_help(void)
{
Curses_ClearScreen();
- printw("GNU Shogi %sp%s command summary\n", version, patchlevel);
+ printw("GNU Shogi %s command summary\n", PACKAGE_VERSION);
printw("-------------------------------"
"---------------------------------\n");
printw("7g7f move from 7g to 7f quit Exit Shogi\n");
Curses_ClearScreen();
gotoXY(32, 2);
- printw("GNU Shogi %sp%s", version, patchlevel);
+ printw("GNU Shogi %s", PACKAGE_VERSION);
gotoXY(20, 4);
printw(" 1. 40 moves in 5 minutes");
gotoXY(20, 5);
extern small_short ChkFlag[], CptrFlag[], TesujiFlag[];
extern short Pscore[], Tscore[];
extern /*unsigned*/ short rehash; /* -1 is used as a flag --tpm */
-extern char version[], patchlevel[];
extern unsigned int ttbllimit;
extern unsigned int TTadd;
extern unsigned int ttblsize;
*
*/
-#include "version.h"
#include "gnushogi.h"
#include <signal.h>
#endif /* ttblsz */
case 'v':
- fprintf(stderr, "gnushogi version %s patchlevel %s\n", version, patchlevel);
+ fprintf(stderr, "gnushogi version %s\n", PACKAGE_VERSION);
exit(1);
*
*/
-#include "version.h"
#include "gnushogi.h"
#include "pattern.h"
# error "Need setlinebuf() or setvbuf() to compile gnushogi!"
# endif
#endif
- printf("GNU Shogi %sp%s\n", version, patchlevel);
+ printf("GNU Shogi %s\n", PACKAGE_VERSION);
}
if (hard_time_limit)
Raw_help(void)
{
Raw_ClearScreen();
- printf("GNU Shogi %sp%s command summary\n", version, patchlevel);
+ printf("GNU Shogi %s command summary\n", PACKAGE_VERSION);
printf("----------------------------------"
"------------------------------\n");
fputs ("7g7f move from 7g to 7f quit Exit Shogi\n", stdout);
*
*/
-#include "version.h"
#include "gnushogi.h"
#include <signal.h>
+++ /dev/null
-/*
- * FILE: version.h
- *
- * Version information for GNU Shogi.
- *
- * ----------------------------------------------------------------------
- * Copyright (c) 1993, 1994, 1995 Matthias Mutz
- * Copyright (c) 1999 Michael Vanier and the Free Software Foundation
- *
- * GNU SHOGI is based on GNU CHESS
- *
- * Copyright (c) 1988, 1989, 1990 John Stanback
- * Copyright (c) 1992 Free Software Foundation
- *
- * This file is part of GNU SHOGI.
- *
- * GNU Shogi is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 3 of the License,
- * or (at your option) any later version.
- *
- * GNU Shogi is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with GNU Shogi; see the file COPYING. If not, see
- * <http://www.gnu.org/licenses/>.
- * ----------------------------------------------------------------------
- *
- */
-
-#ifndef _VERSION_H_
-#define _VERSION_H_
-
-char version[] = "1.4.0";
-char patchlevel[] = "0";
-
-#endif /* _VERSION_H_ */
-
#
xshogi: xshogi.o parser.o
-xshogi.o: xshogi.c $(SRCDIR)/sysdeps.h $(SRCDIR)/xshogi.h $(SRCDIR)/bitmaps.h $(ROOT)/version.h ../config.h
+xshogi.o: xshogi.c $(SRCDIR)/sysdeps.h $(SRCDIR)/xshogi.h $(SRCDIR)/bitmaps.h ../config.h
parser.o: parser.c $(SRCDIR)/xshogi.h
parser.c: parser.y scanner.c
scanner.c: scanner.l
#include <X11/Xaw/SmeLine.h>
#include <X11/cursorfont.h>
-#include "../version.h"
#include "xshogi.h"
#define BUF_SIZE 1024
False, (XtEventHandler)EventProc,
(XtPointer)(player == &remotePlayer));
- sprintf(buf, "xshogi version %s, patchlevel %s based on "
+ sprintf(buf, "xshogi version %s based on "
"xboard version %s",
- version, patchlevel, XBOARD_VERSION);
+ PACKAGE_VERSION, XBOARD_VERSION);
/*
* If there is to be a machine match, set it up.