nixpkgs/pkgs/development/libraries/gtk/hooks/gtk3-clean-immodules-cache.sh
worldofpeace 082b0b2619 gtk: reorganize
This directory was mess of patches and hooks.
Have a patches dir and a setup-hooks dir.
2019-10-13 18:17:48 -04:00

12 lines
313 B
Bash

# shellcheck shell=bash
fixupOutputHooks+=(_gtk3CleanComments)
# Clean comments that link to generator of the file
_gtk3CleanComments() {
local f="${prefix:?}/lib/gtk-3.0/3.0.0/immodules.cache"
if [ -f "$f" ]; then
sed 's|Created by .*bin/gtk-query-|Created by bin/gtk-query-|' -i "$f"
fi
}