svn commit: r456674 - in head/graphics: . libQGLViewer libQGLViewer/files

Joseph Mingrone jrm at FreeBSD.org
Wed Dec 27 19:39:08 UTC 2017


Yuri <yuri at freebsd.org> writes:
> $ for d in $(ls) ; do if [ -d $d ] ; then echo "$d: $((100*$(cd $d; ls | grep "[A-Z]" | wc -l)/$(cd $d; ls | wc -l)))%"; fi; done;

> shows that 20-30% of ports tree directories already have some capitalization in them, so it is too late to fight for this. This is a particularly high percentage considering that many older software titles
> don't use capitalization.

Here are the results if we exclude 'special' ports like p5-*.

jrm at phe ~ % cat upp
#!/bin/sh

for d in /usr/ports/*/; do
  case $d in
    */Mk/|*/Keywords/|*/Templates/|*/Tools/)
      continue
      ;;
    *)
      capc=$(find "$d" -type d -depth 1 -not \( -name 'hs-*' -or -name 'p5-*' \
                  -or -name 'pear-*' -or -name 'py-*' -or -name 'R-*' -or \
                  -regex '.*_[[:upper:]]\{2\}$' \) -regex ".*[[:upper:]].*" \
               | wc -l)
      totc=$(find "$d" -type d -depth 1 -not \( -name 'hs-*' -or -name 'p5-*' \
                  -or -name 'pear-*' -or -name 'py-*' -or -name 'R-*' -or \
                  -regex '.*_[[:upper:]]\{2\}$' \) | wc -l)
      percent=$((100*"$capc"/"$totc"))

      dir="${d%/}"
      printf "%s: %s%%\\n" "${dir##*/}" "$percent"
  esac
done%

jrm at phe ~ % upp
accessibility: 0%
arabic: 0%
archivers: 0%
astro: 0%
audio: 0%
base: 0%
benchmarks: 0%
biology: 1%
cad: 1%
chinese: 4%
comms: 0%
converters: 0%
databases: 1%
deskutils: 0%
devel: 0%
distfiles: 0%
dns: 0%
editors: 1%
emulators: 0%
finance: 0%
french: 0%
ftp: 0%
games: 0%
german: 3%
graphics: 1%
hebrew: 0%
hungarian: 0%
irc: 1%
japanese: 2%
java: 0%
korean: 12%
lang: 0%
mail: 0%
math: 1%
misc: 0%
multimedia: 0%
net-im: 1%
net-mgmt: 0%
net-p2p: 0%
net: 0%
news: 0%
palm: 7%
polish: 0%
ports-mgmt: 0%
portuguese: 0%
print: 0%
russian: 0%
science: 2%
security: 2%
shells: 0%
sysutils: 0%
textproc: 0%
ukrainian: 0%
vietnamese: 0%
www: 2%
x11-clocks: 0%
x11-drivers: 0%
x11-fm: 0%
x11-fonts: 2%
x11-servers: 10%
x11-themes: 1%
x11-toolkits: 3%
x11-wm: 0%
x11: 5%
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 962 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20171227/dab3c20c/attachment.sig>


More information about the svn-ports-all mailing list