#!/usr/bin/ksh -u

# @(#) cdbuildkit.sh 1.16@(#) SMI

PROGRAM=$(whence $0)
PROG_PATH=$(dirname $PROGRAM)
# The location of this script and all the need files

[[ $0 = /* ]] && PRG=$0 || PRG=$PWD/$0

typeset -r CDKROOT=$(dirname $PRG)

#typeset -r CDKROOT=$(pwd)

# The valid L10N media names

typeset -r VALIDL10N="multi en"

# initialize the PKGSTOUSE and NEEDED_PKGS var to null
TRANSPKGS=
PATCHPOOL=
PKGSTOUSE=
NEEDED_LOC=
VOLUMEID=

# Copyright file to use if other that what is delivered

COPYRIGHT=
# The location of the makecd binary

typeset MAKECD="$CDKROOT/../bin/makecd"

# mkisofs is used to create valid rock ridge hsfs.
# the version used here is 1.11.
# This is open source. The source code can be found in
# tools/src/mkisofs-1.11
# NOTE: Use the version included here, other versions do
#       not work with makecd.

typeset -r MKISOFS="$CDKROOT/../bin/mkisofs"

# fastfs turns of disk caching and is very dangerous
# use only if the disk in question contains no valuable data
# set FASTFS to true for this case.

FASTFSON=false
typeset FASTFS="$CDKROOT/../bin/fastfs"

# This is info zip it can be found at ftp://ftp.cdrom.com/pub/infozip/

#typeset -r ZIP="/opt/info-zip/zip22/zip"
#typeset -r ZIP='/net/paradise/export/RE/bin/zip'
typeset -r ZIP='/usr/bin/zip'

#typeset ROOT_SZ_IN_MB=500
typeset ROOT_SZ_IN_MB=550


# to view debug output set to true
OPT_DEBUG=true

export PATH="$PROG_PATH:$PATH"

. $CDKROOT/retools.ksh.lib
. $CDKROOT/cdk.lib
. $CDKROOT/cdbuild.lib

$@

return $?
