146185892Smrg#!/bin/sh
246185892Smrg#
346185892Smrg# Usage: extract-group-names-from-symbols.sh ../symbols
446185892Smrg#
546185892Smrg# Extract the Group1 names from all symbol files in the given directory
646185892Smrg#
746185892Smrg# Example output:
846185892Smrg# us:"Atsina"
946185892Smrg# us:"Cherokee"
1046185892Smrg# us:"Coeur d'Alene Salish"
1146185892Smrg# us:"Czech Slovak and German (US)"
1246185892Smrg# us:"English (3l)"
1346185892Smrg# us:"English (3l, Chromebook)"
1446185892Smrg# us:"English (3l, emacs)"
1546185892Smrg# us:"English (Carpalx)"
1646185892Smrg
1746185892Smrgpushd $1 > /dev/null
1846185892Smrggrep 'name\[Group1\]' * | sed 's/[[:space:]]*name\[Group1\].*=[[:space:]]*//;s/;[[:space:]]*$//' | sort
1946185892Smrgpopd > /dev/null
20