#!/bin/bash
# Copyright (c) 2018 Nicolas Mailhot <nim@fedoraproject.org>
# This file is distributed under the terms of GNU GPL license version 3, or
# any later version.
while read dir ; do
if [[ -d "${dir}" ]] ; then
if [[ "${dir%/vendor/*}/vendor" != "${dir}" && \
-n $(find "${dir}" -maxdepth 1 -type f) ]] ; then
echo "bundled(golang(${dir##*/vendor/}))"
fi
fi
done | sort -u