Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 88983

Summary: eutils: newicon function
Product: Gentoo Linux Reporter: Yaakov S <yselkowitz>
Component: EclassesAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 88924    

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!