From 728ef517242655b7d6bea7735b69a5e264d18257 Mon Sep 17 00:00:00 2001 From: Dorai Sitaram Date: Fri, 14 Feb 2025 15:40:14 -0500 Subject: [PATCH] src-subdir-mgt.sh: Don't copy from empty proglang/ subdirs (these shdnt exist btw) to avoid warning --- lib/maker/src-subdir-mgt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/maker/src-subdir-mgt.sh b/lib/maker/src-subdir-mgt.sh index c6d6396a8a4..30d91290ce7 100644 --- a/lib/maker/src-subdir-mgt.sh +++ b/lib/maker/src-subdir-mgt.sh @@ -5,7 +5,9 @@ function adjustproglangsubdirs() { local d=$1 local pl=$2 - test -d "$d"/"$pl" && $CP -p "$d"/"$pl"/* "$d" + if test -d "$d"/"$pl"; then + (find "$d"/"$pl" -maxdepth 0 -empty|grep -q .) || $CP -p "$d"/"$pl"/* "$d" + fi if test "$pl" != pyret -a "$pl" != none; then local lang