#!/bin/sh

# dist-test-cases --- listing files and directories under Units and Tmain
#
# COPYRIGHT NOTICE SHOULD BE HERE
#

echo "# -*- makefile -*-"
echo "# Generated by $0" &&
echo "EXTRA_DIST += misc/units \\" &&
if type git > /dev/null 2>&1; then
    git ls-files | grep 'Units\|Tmain' | sed -e 's/$/\\/' -e 's/^/    /' &&
	echo '$(NULL)'
elif type find > /dev/null 2>&1; then
    find Tmain Units -type f -exec printf "    %s\\\\\n" '{}' \; &&
	echo '$(NULL)'
else
    echo '$(NO_GIT_EMPTY)'
fi &&
exit $?
