chiark / gitweb /
categorycount is no longer of any use
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 31 Oct 2013 12:08:39 +0000 (13:08 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 31 Oct 2013 12:08:39 +0000 (13:08 +0100)
tools/categorycount [deleted file]

diff --git a/tools/categorycount b/tools/categorycount
deleted file mode 100755 (executable)
index 02e3d60..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-# Sorts categories by number of apps in them, discards disabled apps
-
-declare -A count
-
-for file in metadata/*.txt
-do
-    while read line
-    do
-        [[ "$line" == "Disabled:"* ]] && break
-        if [[ "$line" == "Category:"* ]]
-        then
-            while IFS=';' read -ra categ
-            do
-                count[$categ]=$(( ${count[$categ]} + 1 )) || count[$categ]=1
-            done <<< "${line:9}"
-            break
-        fi
-    done < $file
-done
-
-output=""
-
-for category in "${!count[@]}"
-do
-    output+="${count[$category]}_$category\n"
-done
-
-echo -en "$output" | column -t -s '_' | sort -n