docs/master
annotate 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 | |
children |
rev | line source |
---|---|
meillo@234 | 1 #!/bin/sh |
meillo@234 | 2 # |
meillo@234 | 3 # List all switches of all mmh programs. |
meillo@234 | 4 # Based on the source code. |
meillo@234 | 5 |
meillo@234 | 6 for i in "$@" ; do |
meillo@234 | 7 echo "$i" |
meillo@234 | 8 sed -n '/^#define/d;/struct swit [a-z]*switches\[\]/,/^};/p' "$i" |
meillo@234 | 9 echo |
meillo@234 | 10 done |