summaryrefslogtreecommitdiff
blob: 1c9e7cc07f6beac82b680d818dd5b7a7694b3a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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