2001-04-09 20:54:03 +01:00
#/bin/bash
# Guess what: this code works for me!
2006-04-13 13:02:39 +01:00
version="Yap-5.1.2"
2001-04-09 20:54:03 +01:00
splat
cd C
splat
cd ../H
splat
2005-09-08 22:59:58 +01:00
cd ../BEAM
splat
2001-04-09 20:54:03 +01:00
cd ../OPTYap
splat
cd ../VC
splat
2002-06-01 05:29:01 +01:00
cd ../LGPL
splat
2005-10-28 18:57:25 +01:00
cd chr
splat
cd ../clpr
splat
cd ../clp
splat
2005-10-29 02:28:37 +01:00
cd ../JPL
2004-09-27 21:45:04 +01:00
splat
cd src
splat
cd ../java
splat
cd jpl
splat
cd fli
splat
cd ../../../../pillow
2002-06-01 05:29:01 +01:00
splat
cd examples
splat
2002-06-03 17:15:14 +01:00
cd ../../../include
2001-04-09 20:54:03 +01:00
splat
2004-09-27 21:45:04 +01:00
#/bin/cp config.h config.h.mine
#/bin/cp ../../../bins/cyg/*.h .
#/bin/mv config.h.mine config.h
cd ../console
2001-04-09 20:54:03 +01:00
splat
cd ../docs
splat
if test "$1" = "--small"; then
make realclean
else
2005-08-22 14:49:27 +01:00
make html
make pdf
2001-04-09 20:54:03 +01:00
make clean
fi
cd ../include
splat
cd ../library
splat
cd regex
splat
2002-06-05 00:50:50 +01:00
cd ../yap2swi
splat
2005-08-22 14:49:27 +01:00
cd ../../misc
2001-04-09 20:54:03 +01:00
splat
cd ../pl
splat
cd ../CLPQR
splat
2001-07-17 19:51:50 +01:00
cd clpq
2001-04-09 20:54:03 +01:00
splat
2001-07-17 19:51:50 +01:00
cd ../clpqr
splat
cd examples
splat
cd SESSION
splat
cd ../monash
splat
cd ../../../clpr
splat
cd ../../CHR
splat
cd chr
splat
2004-09-27 21:45:04 +01:00
cd ../../CLPBN
splat
cd clpbn
splat
2001-07-17 19:51:50 +01:00
cd examples
splat
cd ../../../..
2001-04-09 20:54:03 +01:00
if test "$1" = "--small"; then
2006-04-13 13:02:39 +01:00
tar cvzf "$version"-small.tar.gz --exclude=CVS "$version"/{Artistic,INSTALL,README*,changes*,config*,install-sh,Makefile.in,.depend.in,distribute,C,H,VC,console,docs,include,library,misc,pl,LGPL/README,LGPL/pillow/[C-Z]*,LGPL/pillow/*.pl,LGPL/pillow/doc/*info*,LGPL/JPL/jpl.yap,LGPL/JPL/jpl_paths.yap.in,LGPL/JPL/Makefile.in,LGPL/JPL/java,LGPL/JPL/src,build-distr,OPTYap,BEAM,MYDDAS,LGPL/clpr,LGPL/chr,LGPL/clp,CLPBN} # --exclude=CLPQR/clpqr/examples --exclude=CHR/chr/examples
2001-04-09 20:54:03 +01:00
else
2006-04-13 13:02:39 +01:00
tar cvzf "$version".tar.gz --exclude=CVS "$version"/{Artistic,INSTALL,README*,changes*,config*,install-sh,Makefile.in,.depend.in,distribute,C,H,VC,console,docs,include,library,misc,pl,LGPL/README,LGPL/pillow/[C-Z]*,LGPL/pillow/*.pl,LGPL/pillow/doc/*info*,LGPL/JPL/jpl.yap,LGPL/JPL/jpl_paths.yap.in,LGPL/JPL/Makefile.in,LGPL/JPL/java,LGPL/JPL/src,build-distr,build-distr,OPTYap,BEAM,MYDDAS,LGPL/clpr,LGPL/chr,LGPL/clp,CLPBN,Logtalk}
2001-04-09 20:54:03 +01:00
fi