3 # Author: Allan Rae <rae@lyx.org>
5 # Copy xtl files ready for internal use.
8 echo "usage: lxtl.sh <version-number>">&2
9 echo " <version-number> is required and should be of the form" >&2
10 echo " 'XTL-x.y.pl.z' where x, y and z are digits." >&2
12 echo "Run this from the root of the xtl source tree." >&2
13 echo "Everything LyX needs will be moved into lxtl/" >&2
14 echo "you then 'cp lxtl/* /path-to-lyx/src/xtl/'" >&2
19 if [ ! -d ./include/xtl ] ; then
23 if [ -d ./lxtl ]; then
24 echo "Uh oh! There's a directory called lxtl here already." >&2
25 echo "I'm going to delete it unless you press <Ctrl><C> right now!" >&2
37 cat > lxtl/README <<EOF
39 This directory contains the subset of XTL required by LyX.
40 The full distribution includes extensive tests and documentation.
41 If you encounter compiler errors in xtl code when compiling LyX please
42 get a copy of the full distribution and run the regression tests on your
43 system. Report any problems found to the xtl mailing list.
45 See: http://gsd.di.uminho.pt/jop/xtl/
47 -------------------------===========================----------------------
51 cat README >> lxtl/README
53 cat > lxtl/Makefile.am <<\EOF
54 AUTOMAKE_OPTIONS = foreign 1.4
55 DISTCLEANFILES= *.orig *.rej *~ *.bak core
56 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
57 EXTRA_DIST = README COPYING.LIB
58 ETAGS_ARGS = --lang=c++
72 cat > lxtl/.cvsignore <<EOF
77 # strip the Id info otherwise it gets replaced with the CVS version instead
78 # making it even more confusing.
83 sed < $hfile > ../../lxtl/$hfile \