#!/bin/bash
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: doinfo 13063 2009-03-12 00:28:45Z zmedico $

if [[ -z $1 ]] ; then
	vecho "${0##*/}: at least one argument needed"
	exit 1 	
fi

if [[ ! -d ${D}usr/share/info ]] ; then
	install -d "${D}usr/share/info" || exit 1
fi

install -m0644 "$@" "${D}usr/share/info"
rval=$?
if [ $rval -ne 0 ] ; then
	for x in "$@" ; do
		[ -e "$x" ] || echo "!!! ${0##*/}: $x does not exist" 1>&2
	done
fi
exit $rval
