#!/bin/bash
# Paludis install_all_pre hook (general hook — no ebuild environment available).
if [ -x "/usr/bin/cfg-update" ]; then
    /usr/bin/cfg-update --index --paludis
elif [ -e "/usr/bin/cfg-update" ]; then
    echo ">>> cfg-update: not executable, please fix permissions on /usr/bin/cfg-update" >&2
else
    echo ">>> cfg-update: not found, please remove $0" >&2
fi