| Summary: | eutils: newicon function | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Yaakov S <yselkowitz> |
| Component: | Eclasses | Assignee: | 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 | ||
vapier, you want this one? If not, slap me. ;-) that's a whole lot of effort for nothing
added this to eutils:
newicon() {
insinto /usr/share/pixmaps
newins "$1" "$2"
}
I just copied the syntax of the portage new* scripts for consistency, so it really wasn't that much effort. :-) Thanks! |
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}" }