Summary: | configuration options to post process files on install to shrink file size (e.g. pngcrush on png) | ||
---|---|---|---|
Product: | Portage Development | Reporter: | om3i <r9ku1q> |
Component: | Conceptual/Abstract Ideas | Assignee: | Portage team <dev-portage> |
Status: | UNCONFIRMED --- | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
om3i
2015-04-05 19:33:52 UTC
guess we could add something like: PORTAGE_CRUSH_<filetype>="<program> \"\${INPUT}\" \"\${OUTPUT}\"" then we'll execute this once for every file ending in ".<filetype>" with $INPUT and $OUTPUT set. if the program returns an error, we silently ignore it and move on. if the $OUTPUT is not actually smaller than $INPUT, then we ignore it. i would say do it based on mime type, but that's prone to false positives. should we restrict this to specific paths like /usr/share ? can't see why we would ... |