[comp.sources.misc] v20i071: Chess text converter, Patch01

hthomas@irisa.fr (Henry Thomas) (06/28/91)

Submitted-by: Henry Thomas <hthomas@irisa.fr>
Posting-number: Volume 20, Issue 71
Archive-name: notation/patch01
Patch-To: notation: Volume 20, Issue 52-55

The recent post of notation was missing the file chesssymb.tex.
There was also an error in the Makefile of the notation package: 
an obsolete file was referenced.  Here is the corrected Makefile
and the missing file.

To install this, unshar the two files and copy them into the 
notation sources directory. If you unshar this in the notation
sources directory, be sure to rename the existing Makefile to 
Makefile.orig prior to unsharing.
--
#! /bin/sh
# This is a shell archive.  Remove anything before this line, then feed it
# into a shell via "sh file" or similar.  To overwrite existing files,
# type "sh file -c".
# The tool that generated this appeared in the comp.sources.unix newsgroup;
# send mail to comp-sources-unix@uunet.uu.net if you want that tool.
# Contents:  Makefile Part01 chesssymb.tex
# Wrapped by kent@sparky on Thu Jun 27 11:16:42 1991
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
echo If this archive is complete, you will see the following message:
echo '          "shar: End of archive 1 (of 1)."'
if test -f 'Makefile' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'Makefile'\"
else
  echo shar: Extracting \"'Makefile'\" \(2913 characters\)
  sed "s/^X//" >'Makefile' <<'END_OF_FILE'
X# Makefile for notation program
X# (C) Henry Thomas 1990
X
XFILES      = notation.c drivers.c lexer.c lexer.l
XHEADERS	   = notation.h drivers.h lexer.h chesstype.h chesssymb.def
X#LIBDIR     = ./lib
XLIBDIR     = .
XBINDIR=$(HOME)/local/bin.$(HOSTTYPE)
X
XOBJECTS    = notation.o drivers.o lexer.o
X
XOTHERFILES = Makefile HELPFILE \
X	keywords.txt algebric.txt shortened.txt boudy.txt\
X	notation.doc notation.n \
X	README TODO COPYING CHANGES \
X	print-ps \
X	Header.ps Footer.ps Header.tex \
X	convsymb.txt convsymb.tex \
X	symboles.txt symboles.tex symb.tex
X
X
XSAVEFILES  = $(FILES) $(HEADERS) $(OTHERFILES)
X
XKITNAME	   = "Notation"
X
X############################################################
X# you might want to define the lib path : 
X#	do not forget the trailing /
X# ( the library is the place where the HELPFILE, Heading, fonts etc are)
X# also you can have default language for input/ouput
X# define DEFAULT_INPUT_LANGUAGE and DEFAULT_OUPUT_LANGUAGE
X# value can be:
X#	FRENCH, ENGLISH, GERMAN, ITALIAN, SPANISH, DUTCH
X# ANSI C/ TURBO C (MSDOS)
X# to compile with TURBO C or ANSI C, define TURBOC
XCFLAGS     = -DLIB_DIR=\"$(HOME)/echecs/Notation/\" \
X-DDEFAULT_INPUT_LANGUAGE=FRENCH -DDEFAULT_OUTPUT_LANGUAGE=FRENCH 
XLDFLAGS    =
X
X
XLEX= flex
X
X#CC= gcc -ansi -pedantic
X
X############################################################
X
X.KEEPSTATE:
X
Xall: notation notation.doc symboles.txt
X
Xlexer.c: lexer.l chesstype.h
X	$(LEX) -t lexer.l > lexer.c
X
Xnotation: $(OBJECTS)
X	$(CC) $(CFLAGS) -o notation  $(OBJECTS) 
X
Xsymboles.txt:  chesssymb.def convsymb.txt
X	/lib/cpp -P convsymb.txt| sed -e "s/\\\\//" |\
X	sed -e 's/\"//g' | cat -s > symboles.txt
X
Xsymb.tex:  chesssymb.def convsymb.tex
X	/lib/cpp -P convsymb.tex | sed -e 's/\\\\/\\/g' |\
X	sed -e 's/\"//g' | cat -s > symb.tex
Xsymboles.dvi: symboles.tex symb.tex
X	latex symboles.tex
X
Xkit     : $(SAVEFILES)
X	makekit -n$(KITNAME) $(LIBDIR) $(SAVEFILES) MANIFEST > MANIFEST
X
Xshar     : $(SAVEFILES)
X	shar -o$(KITNAME).shar $(LIBDIR) $(SAVEFILES) 
X	compress -f $(KITNAME).shar
X
Xtar     : $(SAVEFILES)
X	tar -cvf - $(SAVEFILES) > $(KITNAME).tar
X	compress -f $(KITNAME).tar
X
Xzoo	: $(SAVEFILES)
X#	chmod +w $(KITNAME).zoo
X	zoo -freshen $(KITNAME).zoo $(SAVEFILES)
X	rm -f $(KITNAME).bak
X#	chmod -w $(KITNAME).zoo
X
Xsauve   :
X	make zoo
X#	chmod +w $(KITNAME).zoo
X	cp $(KITNAME).zoo $(HOME)/local/sauve
X#	chmod -w $(KITNAME).zoo
X
Xinstall: HELPFILE
X	make notation
X	strip notation
X	chmod +x print-ps
X	make notation.doc 
X	make symboles.txt
X
Xhthomas:
X	make install
X	mv notation $(BINDIR)
X
Xclean:
X	rm -f notation $(OBJECTS) lexer.c
X	rm -f $(KITNAME).shar[.Z] $(KITNAME).tar[.Z] $(KITNAME)0? MANIFEST
X
Xnotation.doc: notation.n
X	nroff -man notation.n > notation.doc
X
X
X# DO NOT DELETE THIS LINE -- make depend depends on it.
X
Xdrivers.o: chesstype.h notation.h drivers.h chesssymb.def
Xlexer.o: chesstype.h notation.h lexer.h chesssymb.def
Xnotation.o: chesstype.h drivers.h notation.h lexer.h chesssymb.def
END_OF_FILE
  if test 2913 -ne `wc -c <'Makefile'`; then
    echo shar: \"'Makefile'\" unpacked with wrong size!
  fi
  # end of 'Makefile'
fi
if test -f 'Part01' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'Part01'\"
else
  echo shar: Extracting \"'Part01'\" \(0 characters\)
  sed "s/^X//" >'Part01' <<'END_OF_FILE'
END_OF_FILE
  if test 0 -ne `wc -c <'Part01'`; then
    echo shar: \"'Part01'\" unpacked with wrong size!
  fi
  # end of 'Part01'
fi
if test -f 'chesssymb.tex' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'chesssymb.tex'\"
else
  echo shar: Extracting \"'chesssymb.tex'\" \(1938 characters\)
  sed "s/^X//" >'chesssymb.tex' <<'END_OF_FILE'
X%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
X%% CHESS FIGURES FONT
X\font\figchess=chessfig10
X%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
X%% COMMENTS
X\newcommand{\COMwsb}{$\underline{\pm}$}
X\newcommand{\COMbsb}{$\overline{\mp}$}
X\newcommand{\COMwbe}{$\pm$}
X\newcommand{\COMbbe}{$\mp$}
X\newcommand{\COMwda}{$+-$}
X\newcommand{\COMbda}{$-+$}
X\newcommand{\COMlev}{$=$}
X\newcommand{\COMucr}{$\infty$}
X\newcommand{\COMwco}{$\overline{\overline{\infty}}$}
X\newcommand{\COMdad}{$\bigcirc\!\!\!\!\!\!\!\nearrow$}
X\newcommand{\COMspa}{$\bigcirc$}
X\newcommand{\COMwta}{$\rightarrow$}
X\newcommand{\COMwin}{$\uparrow$}
X\newcommand{\COMwcp}{$\stackrel{\textstyle \leftarrow}{\rightarrow}$}
X\newcommand{\COMzug}{$\bigodot$}
X\newcommand{\COMmat}{\#}
X\newcommand{\COMwti}{$\triangle$}
X\newcommand{\COMolm}{$\Box$}
X\newcommand{\COMbei}{$\underline{\frown}$}
X\newcommand{\COMfil}{$\Leftrightarrow$}
X\newcommand{\COMdia}{$\nearrow$}
X\newcommand{\COMcnt}{\setlength{\unitlength}{0.8em}%
X\begin{picture}(1,1)(0,0)\multiput(0,0)(0,0.5){3}{\line(1,0){1}}
X\multiput(0,0)(0.5,0){3}{\line(0,1){1}}\end{picture}}
X\newcommand{\COMkgs}{$\gg$}
X\newcommand{\COMqns}{$\ll$}
X\newcommand{\COMwkp}{$\times$}
X\newcommand{\COMend}{$\bot$}
X\newcommand{\BBox}{\rule{1.2ex}{1.2ex}}
X\newcommand{\BBoxRaised}{\raisebox{0.3ex}{\rule{1.2ex}{1.2ex}}}
X%\newcommand{\COMpob}{$\stackrel{\textstyle\;\Box}{\Box}$}
X\newcommand{\COMpob}{$\Box\!\!\!\raisebox{0.7ex}{$\Box$}$}
X\newcommand{\COMopc}{$\Box\!\!\raisebox{1ex}{\BBox}$}
X\newcommand{\COMscb}{$\BBox\!\raisebox{0.7ex}{\BBox}$}
X\newcommand{\COMunp}{$\circ\!\circ$}
X\newcommand{\COMsep}{$\circ..\circ$}
X\newcommand{\COMdop}{$\stackrel{\textstyle\circ}{\circ}$}
X\newcommand{\COMtim}{$\oplus$}
X\newcommand{\COMwit}{$|\!\raisebox{-1.1ex}{---}$}
X\newcommand{\COMwto}{$\raisebox{-1.1ex}{---}\!|$}
X\newcommand{\COMetc}{$\|$}
X\newcommand{\COMsee}{$\raisebox{-1.1ex}{---}$}
X%% END DEFS
X%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
END_OF_FILE
  if test 1938 -ne `wc -c <'chesssymb.tex'`; then
    echo shar: \"'chesssymb.tex'\" unpacked with wrong size!
  fi
  # end of 'chesssymb.tex'
fi
echo shar: End of archive 1 \(of 1\).
cp /dev/null ark1isdone
MISSING=""
for I in 1 ; do
    if test ! -f ark${I}isdone ; then
	MISSING="${MISSING} ${I}"
    fi
done
if test "${MISSING}" = "" ; then
    echo You have the archive.
    rm -f ark[1-9]isdone
else
    echo You still must unpack the following archives:
    echo "        " ${MISSING}
fi
exit 0
--
Henry Thomas - IRISA 		 - E-mail: Henry.Thomas@irisa.fr 
Campus Universitaire de Beaulieu - Phone: (+33)99 36 20 00 +549  
35042 RENNES CEDEX FRANCE 	 - Fax: (+33)99 38 38 32 Telex: UNIRISA 950473F
Telex Atlas X400: /X121=842950473/@atlas.fr, Fax:/X121=200099383832/@atlas.fr

exit 0 # Just in case...
-- 
Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
Sterling Software, IMD           UUCP:     uunet!sparky!kent
Phone:    (402) 291-8300         FAX:      (402) 291-4362
Please send comp.sources.misc-related mail to kent@uunet.uu.net.