#
# This is a strictly POSIX 1003.2 shell (Bourne shell) script 
# adding the LaTeX memoir package to 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 Mark van Atten <Mark.vanAtten@univ-paris1.fr>
# 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 "You can generate the documented source code by running:"
	pkg_log "	latex ellipsis.dtx"
}

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
#
#
pkg_get

#===== TeX version
#
# unzip
cd $TMPDIR/lib/$PKG_NAME/.. 
$PKG_UNZIP ellipsis.zip
rm ellipsis.zip
cd $TMPDIR/lib/$PKG_NAME/
$KERTEX_BINDIR/latex ellipsis.ins

# The path will be added by KXPATH. So we let files here.



#===== 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/ellipsis
VERSION: 2004-Sep-27
LICENCE: LaTeX Project Public Licence 
	http://www.latex-project.org/lppl.txt
	either version 1 of the license, or (at your option) any
	later version.
KERTEX_VERSION: 0.9999.6.1
DESCRIPTION: Fix uneven spacing around ellipses in LaTeX text mode.
KXPATH:
	latex ellipsis
SOURCES:
ftp://anonymous:kertex@ftp.ctan.org/
	LCD HOME/..
	GET /pub/tex/macros/latex/contrib/ellipsis.zip
END:
END_CID
