#
# This is a strictly POSIX 1003.2 shell (Bourne shell) script 
# sketching the addition of the Compte Rendus de l'Académie des Sciences
# LaTeX files for the the TeX Kernel system: kerTeX.
#
# No shebang, since there is a bootstrapping problem: this script has
# to run on whatever host the kerTeX system runs on.
# It has to be invoked with whatever Bourne shell like interpreter is
# present on the host.
#
# C) 2012 Thierry Laronde <tlaronde@polynum.com>
# All rights reserved and absolutely no warranty! Use at your own 
# risks.
#

# Needed post action (build, apply, remove) routines.
#
pkg_post_build()
{
	return 0 # bash errors on empty function...
}

pkg_post_apply()
{
	pkg_log 
	pkg_log "There are examples for french, and english in the package"
	pkg_log "directory: $KERTEX_LIBDIR/$PKG_NAME/."
	pkg_log
	pkg_log "For example:"
	pkg_log "prompt> latex cracs/maths-francais"
	pkg_log
}

pkg_post_remove()
{
	return 0 # bash errors on empty function...
}

#==================== AUTOMATIC PROCESSING
# First include the pecularities of the TeX kernel system host.
#
. which_kertex

# Then we now how to find the library that defines routines and does
# some checks, argument processing and initializations. See the file
# directly for explanations.
#
. $KERTEX_BINDIR/lib/pkglib.sh

#==================== CUSTOM PROCESSING: we are in TMPDIR
#
# Get the files. They are retrieved directly in the hierarchy.
#
pkg_get

#===== CUSTOM PROCESSING FINISHED
#
# Time to do whether the build or the install.
#
pkg_do_action

# not reached
exit 0

# Since we have exited above, no need to comment out the CID.

BEGIN_CID
NAME: latex/cracs
DEPENDENCIES: 
	latex/babel
	latex/graphics
VERSION: 2005-12-01
LICENCE: LaTeX Project Public Licence 
	http://www.latex-project.org/lppl.txt
KERTEX_VERSION: 0.999.1.3
DESCRIPTION:
This is the LaTeX style files for the french Compte Rendus de 
l'Académie des Sciences.
KXPATH:
	latex cracs
SOURCES:
http://downloads.kergis.com/
	LCD HOME/
	GET /cracs/maths-francais.tex
	GET maths-english.tex
	GET elsart.cls
	GET elsart3-1.cls
END:
END_CID

