view scripts/list-all-switches-code @ 235:e58400695ae2

Added tag final version for changeset 348b92755bef
author markus schnalke <meillo@marmaro.de>
date Mon, 16 Jul 2012 11:25:04 +0200
parents eba3744fb238
children
line wrap: on
line source

#!/bin/sh
#
# List all switches of all mmh programs.
# Based on the source code.

for i in "$@" ; do
	echo "$i"
	sed -n '/^#define/d;/struct swit [a-z]*switches\[\]/,/^};/p' "$i"
	echo
done