#!/bin/sh

#XXX: not implemented yet.
echo 'not implemented yet.' 1>&2


usage()
{
	cat << End_of_Usage | sed 's/^	//' 1>&2
	Usage: ${0} options [library-name ...]
	Possible options are:
	  --help
	  --library-list
	  --make-archive archive-file
	  --include-option
	  --link-option
	  --library-path[=LIB_PATH]
	  --dependency
End_of_Usage
}


while [ ${#} -gt 0 ]
do
	case "${1}" in

	--help)
		usage
		exit 0
		;;

	--library-path=*)
		lib_path=`echo "${1}" | sed 's/^--library-path=//'`
		if [ ! -z "${lib_path}" ]; then
			LIB_PATH=${lib_path}
		else
			usage
			exit 1
		fi
		shift 1
		;;

	--library-path)
		shift 1
		;;

	*)
		usage
		exit 1 ;;
    esac
done

if [ -z "${LIB_PATH}" ]; then
	echo "${0}: no library path" 1>&2
	echo 1>&2
	usage
	exit 1
fi

export LIB_PATH
