summaryrefslogtreecommitdiff
blob: 2ffcbada19a02f5a58f139887609f5ff9b30dc05 (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
source /sbin/functions.sh

command=$(basename ${0})

if [[ ${command} == run-ebuild-command ]]; then
	eerror "Do not invoke directly. Instead, invoke through a symlink, named after an ebuild command, prefixed by e"
	exit 1
fi
command=${command#e}


for e in ${@}; do
	ebegin "Performing ${command} on ${e}"
	if [[ -f ${e} ]]; then
		ebuild ${e} ${command}
		eend $?
	else
		eerror "${e} does not exist!"
		eend 1
	fi
done