Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88983 - eutils: newicon function
Summary: eutils: newicon function
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 88924
  Show dependency tree
 
Reported: 2005-04-13 10:15 UTC by Yaakov S
Modified: 2005-04-16 22:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yaakov S 2005-04-13 10:15:26 UTC
Could the following function please be added to eutils, together with the other fdo-menu functions?  Thank you.

newicon() {
	if [ -z "${T}" ] || [ -z "${2}" ] ; then
		echo "Error: Nothing defined to do."
		exit 1
	fi

	rm -rf "${T}/${2}"
	cp "${1}" "${T}/${2}"
	doicon "${T}/${2}"
}
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-04-13 10:35:10 UTC
vapier, you want this one? If not, slap me. ;-)
Comment 2 SpanKY gentoo-dev 2005-04-16 00:05:56 UTC
that's a whole lot of effort for nothing

added this to eutils:
newicon() {
    insinto /usr/share/pixmaps
    newins "$1" "$2"
}
Comment 3 Yaakov S 2005-04-16 22:30:23 UTC
I just copied the syntax of the portage new* scripts for consistency, so it really wasn't that much effort. :-)  Thanks!