-IFS=' '
-while read email type name url ref build; do
- [[ "$email" =~ '^#.*$' ]] && continue
- tab="\t"
- [ $(echo "$name" | wc -c) -le 8 ] && tab="\t\t"
- [ "${ref%:*}" = "${ref}" ] || ref=${ref##*:}
- [ "$type" = "git" ] && url="$url#$ref"
- printf "%s$tab%s\t%s\n" $name $type $url >>Next/Trees
-done <../etc/control
-)
+ cat <<-'EOF'
+ Trees included into this release:
+
+ Name Type URL
+ ---- ---- ---
+ EOF
+
+ IFS=' '
+ grep -v '^#' $CTRL_FILE |
+ while read email type name url ref build; do
+ [ "$type" = "branch" ] && continue
+ tab="\t"
+ [ ${#name} -lt 8 ] && tab="\t\t"
+ [ "$type" = "git" ] && url="$url#${ref##*:}"
+ printf "%s$tab%s\t%s\n" $name $type $url
+ done
+) >Next/Trees