#!/bin/sh # Print the names of all the packages that have installed files into a # particular set of directories. This is useful for rebuilding packages when # upgrading language runtimes. echo `find "$@" -type l | xargs -n1 readlink | sed 's,.*/packages/\([^/]*\)/.*,\1,' | sort -u`