#!/bin/sh
##########################################################################
# Yet Another Midgard Packager - CONFIGURATION FILE
# -------------------------------------------------
# Author: Torben Nehmer, Linksystem Muenchen <t.nehmer@buero.link-m.de>
# $Id: config-dist,v 1.6 2001/05/03 16:09:29 torben Exp $
#
# This file defines all Config Variables and Helper functions needed
# to customize YAMP
#
# LICENCE:
#
# (C) Torben Nehmer, Linksystem Muenchen <t.nehmer@buero.link-m.de> 2001
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU Library General Public
#  License as published by the Free Software Foundation; either
#  version 2 of the License, or (at your option) any later version.
# 
#  This library is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  Library General Public License for more details.
# 
#  If you do not have access to a copy of the GNU Library General Public 
#  License already, write to the Free Software Foundation, Inc., 59 Temple 
#  Place - Suite 330, Boston, MA 02111-1307, USA.
#
##########################################################################
# VARIABLES

PACKAGE_NAME=""
VERSION=""
PACKAGES=""
OTHER_FILES=""

ALL_COMMANDS="xml package"

REPLIGARD="/usr/local/bin/repligard"
REPLIGARD_PARAM="-p -a"
REPLIGARD_CONFIG="-c"

# Any custom csv parameters like CVSROOT can be inserted into this 
# command line. Checkout specific commands have to be done via
# .cvsrc.
CVS="cvs"

# This specifies the Version of the config file. Be sure this is set
# correctly. (if exists, see Documentation, if not, pray)
CONFIG_VERSION=1

##########################################################################
# HELPER FUNCTION extract-custom-op
#
# Insert any commands for special-handling of the xml files here
#
# example: Use "extract somefile.xml" to process somefile.xml
#
# The case loop below is to provide you with an flexible way to 
# edit the xml files after creation. Customize this like the 
# commentet example shows. You already have the extracted file at that
# point, this is handled by extract.
# 
# Available YAMP Helper Functions:
# - insert_login xmlfile guid user password
#     Written by Philipp Rotmann <ph.rotmann@buero.link-m.de>
#     Inserts Username and passwort into a person record in the
#     XML File.
#
extract-custom-op() {
	if [ $# = 0 ]; then
		echo "YAMP $VERSION ERROR:"
		echo "Usage: extract-custom-op {xml file}"
		exit 127
	fi
#
#	Special Behavoirs for files go HERE
#
	case "$1" in
#		example.xml)
#			echo "doing something special with $1"
#		;;
		*)
		;;
	esac
}

