aboutsummaryrefslogtreecommitdiff
path: root/scripts/config2help.sh
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-11-13 17:14:08 -0600
committerRob Landley <rob@landley.net>2012-11-13 17:14:08 -0600
commit7aa651a6a4496d848f86de9b1e6b3a003256a01f (patch)
tree6995fb4b7cc2e90a6706b0239ebaf95d9dbab530 /scripts/config2help.sh
parent571b0706cce45716126776d0ad0f6ac65f4586e3 (diff)
downloadtoybox-7aa651a6a4496d848f86de9b1e6b3a003256a01f.tar.gz
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
The actual code should be the same afterward, this is just cosmetic refactoring.
Diffstat (limited to 'scripts/config2help.sh')
-rwxr-xr-xscripts/config2help.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/config2help.sh b/scripts/config2help.sh
index 63d6c6f0..8f96e39e 100755
--- a/scripts/config2help.sh
+++ b/scripts/config2help.sh
@@ -29,7 +29,7 @@ if test "$0" != "bash"; then
configs=$(echo "$filetxt" | egrep -ne "^config *" | cut -d\: -f1)
endmenus=$(echo "$filetxt" | egrep -ne "^endmenu *" | cut -d\: -f1)
let last=$(echo "$filetxt" | wc -l)+2
-
+
declare -i i c s e
for i in $configs; do
# echo -n "c:$i" >&2
@@ -40,7 +40,7 @@ if test "$0" != "bash"; then
test $e -ge $s
# echo " s:$s e:$e" >&2
print_h "$filetxt" $i $s $e
- done
+ done
for fle in $(cat "$file" | egrep -e "^[ \t]*source " | sed -e "s,^[ \t]*source *\(.*\),\\1,"); do
$0 $fle
done