#!/bin/sh # # Author: Allan Rae # # Copy xtl files ready for internal use. usage () { echo "usage: lxtl.sh ">&2 echo " is required and should be of the form" >&2 echo " 'XTL-x.y.pl.z' where x, y and z are digits." >&2 echo "" >&2 echo "Run this from the root of the xtl source tree." >&2 echo "Everything LyX needs will be moved into lxtl/" >&2 echo "you then 'cp lxtl/* /path-to-lyx/src/xtl/'" >&2 exit 0 } if [ ! -d ./include/xtl ] ; then usage fi if [ -d ./lxtl ]; then echo "Uh oh! There's a directory called lxtl here already." >&2 echo "I'm going to delete it unless you press right now!" >&2 read aline rm -rf lxtl fi if [ $# -lt 1 ]; then usage fi mkdir lxtl cp COPYING.LIB lxtl cat > lxtl/README <> lxtl/README cat > lxtl/Makefile.am <<\EOF AUTOMAKE_OPTIONS = foreign 1.4 DISTCLEANFILES= *.orig *.rej *~ *.bak core MAINTAINERCLEANFILES = $(srcdir)/Makefile.in EXTRA_DIST = README COPYING.LIB ETAGS_ARGS = --lang=c++ SOURCES = \ autobuf.h \ autoio.h \ config.h \ giop.h \ graphio.h \ macros.h \ objio.h \ text.h \ vobjio.h \ xdr.h EOF cat > lxtl/.cvsignore < ../../lxtl/$hfile \ -e '/Id:/s/\$//g' done )