projects
/
grml-quickconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
054b478
)
Fixed some typos
author
Ulrich Dangel
<uli@spamt.net>
Sun, 31 Jan 2010 00:16:12 +0000
(
01:16
+0100)
committer
Ulrich Dangel
<uli@spamt.net>
Sun, 31 Jan 2010 00:16:12 +0000
(
01:16
+0100)
grml-quickconfig
patch
|
blob
|
history
grml-quickconfig.8
patch
|
blob
|
history
quickconfig/001-heading.sh
patch
|
blob
|
history
quickconfig/005-language.sh
patch
|
blob
|
history
quickconfig/010-network.sh
patch
|
blob
|
history
quickconfig/015-netcardconfig.sh
patch
|
blob
|
history
quickconfig/025-info.sh
patch
|
blob
|
history
quickconfig/030-wm.sh
patch
|
blob
|
history
quickconfig/035-menu.sh
patch
|
blob
|
history
quickconfig/040-grml2hd.sh
patch
|
blob
|
history
diff --git
a/grml-quickconfig
b/grml-quickconfig
index
52a22ac
..
5ac4e0a
100755
(executable)
--- a/
grml-quickconfig
+++ b/
grml-quickconfig
@@
-25,8
+25,8
@@
typeset -A keymap
HLINE="$B x $N"
VLINE=$(repeat $MAXLEN echo -n q)
HLINE="$B x $N"
VLINE=$(repeat $MAXLEN echo -n q)
-HILIGHT="$GREEN"
-HILIGHT_NAME="$MAGENTA"
+HI
GH
LIGHT="$GREEN"
+HI
GH
LIGHT_NAME="$MAGENTA"
SCRIPTDIR="/usr/share/grml-quickconfig/"
SCRIPTDIR="/usr/share/grml-quickconfig/"
@@
-56,8
+56,8
@@
print_delim() {
echo $B ${BLUE}t"$VLINE"u${NORMAL} $N
}
echo $B ${BLUE}t"$VLINE"u${NORMAL} $N
}
-hilight_char() {
- echo $1 | sed -e "s/$2/$HILIGHT$2$NORMAL/"
+hi
gh
light_char() {
+ echo $1 | sed -e "s/$2/$HI
GH
LIGHT$2$NORMAL/"
}
print_menu() {
}
print_menu() {
diff --git
a/grml-quickconfig.8
b/grml-quickconfig.8
index
ca0cac8
..
7641930
100644
(file)
--- a/
grml-quickconfig.8
+++ b/
grml-quickconfig.8
@@
-80,7
+80,7
@@
Switch back to normal color
Highlight the used key inside the menu.
.TP
.B Example
Highlight the used key inside the menu.
.TP
.B Example
- print_line "Configure ${HILIGHT}n${NORMAL}etwork"
+ print_line "Configure ${HI
GH
LIGHT}n${NORMAL}etwork"
.SS MUST Provide
.TP
.B display_entry
.SS MUST Provide
.TP
.B display_entry
@@
-108,7
+108,7
@@
used in combination with print_line. Only used if display_entry returns 0.
.RS
.B \ Example
# print Configure network (grml-network)
.RS
.B \ Example
# print Configure network (grml-network)
- LINE='print_line "Configure ${HI
LIGHT}n${NORMAL}etwork (${HI
LIGHT_NAME}grml-network${NORMAL})"'
+ LINE='print_line "Configure ${HI
GHLIGHT}n${NORMAL}etwork (${HIGH
LIGHT_NAME}grml-network${NORMAL})"'
.RE 1
.SS Optional entries
The following variables are optional and can be defined in a script but do not have to.
.RE 1
.SS Optional entries
The following variables are optional and can be defined in a script but do not have to.
@@
-135,8
+135,8
@@
KEY=(c d e)
.SS Complete Example
# language module for grml-quickconfig
.SS Complete Example
# language module for grml-quickconfig
- LINE='print_line "Set keyboard layout (${HILIGHT_NAME}grml-lang${NORMAL}): \\
- ${HI
LIGHT}d${NORMAL}e ${HILIGHT}a${NORMAL}t ${HILIGHT}c${NORMAL}h e${HILIGHT}s${NORMAL} ${HI
LIGHT}u${NORMAL}s"'
+ LINE='print_line "Set keyboard layout (${HI
GH
LIGHT_NAME}grml-lang${NORMAL}): \\
+ ${HI
GHLIGHT}d${NORMAL}e ${HIGHLIGHT}a${NORMAL}t ${HIGHLIGHT}c${NORMAL}h e${HIGHLIGHT}s${NORMAL} ${HIGH
LIGHT}u${NORMAL}s"'
typeset -A lang_mapping
typeset -A lang_mapping
diff --git
a/quickconfig/001-heading.sh
b/quickconfig/001-heading.sh
index
2b9fe82
..
1f5647a
100644
(file)
--- a/
quickconfig/001-heading.sh
+++ b/
quickconfig/001-heading.sh
@@
-2,7
+2,7
@@
# print the heading
LINE='print_line "Welcome to grml-quickconfig";
print_line "Press a highlighted key to perform an action, or press";
# print the heading
LINE='print_line "Welcome to grml-quickconfig";
print_line "Press a highlighted key to perform an action, or press";
-print_line "${HI
LIGHT}Return${NORMAL} or ${HI
LIGHT}q${NORMAL} to go back to the shell.";
+print_line "${HI
GHLIGHT}Return${NORMAL} or ${HIGH
LIGHT}q${NORMAL} to go back to the shell.";
print_delim;
'
print_delim;
'
diff --git
a/quickconfig/005-language.sh
b/quickconfig/005-language.sh
index
daf21be
..
4548960
100644
(file)
--- a/
quickconfig/005-language.sh
+++ b/
quickconfig/005-language.sh
@@
-1,6
+1,6
@@
# language module for grml-quickconfig
# language module for grml-quickconfig
-LINE='print_line "Set keyboard layout (${HILIGHT_NAME}grml-lang${NORMAL}): \
-${HI
LIGHT}d${NORMAL}e ${HILIGHT}a${NORMAL}t ${HILIGHT}c${NORMAL}h e${HILIGHT}s${NORMAL} ${HI
LIGHT}u${NORMAL}s"'
+LINE='print_line "Set keyboard layout (${HI
GH
LIGHT_NAME}grml-lang${NORMAL}): \
+${HI
GHLIGHT}d${NORMAL}e ${HIGHLIGHT}a${NORMAL}t ${HIGHLIGHT}c${NORMAL}h e${HIGHLIGHT}s${NORMAL} ${HIGH
LIGHT}u${NORMAL}s"'
typeset -A lang_mapping
typeset -A lang_mapping
diff --git
a/quickconfig/010-network.sh
b/quickconfig/010-network.sh
index
e1efa25
..
76e3cd3
100644
(file)
--- a/
quickconfig/010-network.sh
+++ b/
quickconfig/010-network.sh
@@
-1,5
+1,5
@@
# grml-network module for grml-quickconfig
# grml-network module for grml-quickconfig
-LINE='print_line "Configure ${HI
LIGHT}n${NORMAL}etwork (${HI
LIGHT_NAME}grml-network${NORMAL})"'
+LINE='print_line "Configure ${HI
GHLIGHT}n${NORMAL}etwork (${HIGH
LIGHT_NAME}grml-network${NORMAL})"'
KEY=(n)
FUNCTION='run grml-network'
KEY=(n)
FUNCTION='run grml-network'
diff --git
a/quickconfig/015-netcardconfig.sh
b/quickconfig/015-netcardconfig.sh
index
2da0ed3
..
e1ec01d
100644
(file)
--- a/
quickconfig/015-netcardconfig.sh
+++ b/
quickconfig/015-netcardconfig.sh
@@
-1,5
+1,5
@@
# netcardconfig module for grml-quickconfig
# netcardconfig module for grml-quickconfig
-LINE='print_line "-> Configure ${HI
LIGHT}e${NORMAL}thernet card directly (${HI
LIGHT_NAME}netcardconfig${NORMAL})"'
+LINE='print_line "-> Configure ${HI
GHLIGHT}e${NORMAL}thernet card directly (${HIGH
LIGHT_NAME}netcardconfig${NORMAL})"'
KEY=(n)
FUNCTION='run netcardconfig'
KEY=(n)
FUNCTION='run netcardconfig'
diff --git
a/quickconfig/025-info.sh
b/quickconfig/025-info.sh
index
b550bc6
..
33533f9
100644
(file)
--- a/
quickconfig/025-info.sh
+++ b/
quickconfig/025-info.sh
@@
-1,5
+1,5
@@
# grml-info module for grml-quickconfig
# grml-info module for grml-quickconfig
-LINE='print_line "Show ${HI
LIGHT}i${NORMAL}nformation about grml (${HI
LIGHT_NAME}grml-info${NORMAL})"'
+LINE='print_line "Show ${HI
GHLIGHT}i${NORMAL}nformation about grml (${HIGH
LIGHT_NAME}grml-info${NORMAL})"'
KEY=(i)
FUNCTION="run grml-info"
KEY=(i)
FUNCTION="run grml-info"
diff --git
a/quickconfig/030-wm.sh
b/quickconfig/030-wm.sh
index
31bcbf4
..
be376ed
100644
(file)
--- a/
quickconfig/030-wm.sh
+++ b/
quickconfig/030-wm.sh
@@
-1,5
+1,5
@@
# window manager module for grml-quickconfig
# window manager module for grml-quickconfig
-LINE='print_line "Start ${HI
LIGHT}x${NORMAL} (${HI
LIGHT_NAME}grml-x${NORMAL})"'
+LINE='print_line "Start ${HI
GHLIGHT}x${NORMAL} (${HIGH
LIGHT_NAME}grml-x${NORMAL})"'
KEY=(x)
FUNCTION='wm_menu'
KEY=(x)
FUNCTION='wm_menu'
@@
-44,7
+44,7
@@
print_available_wm() {
# test if word could be added to current line
if [ $[${(c)#key} + $LEN] -lt $MAXLEN ] ; then
LEN+=${(c)#wm}
# test if word could be added to current line
if [ $[${(c)#key} + $LEN] -lt $MAXLEN ] ; then
LEN+=${(c)#wm}
- line+="$(hilight_char $value $key) "
+ line+="$(hi
gh
light_char $value $key) "
else
LEN=0
output+="$line"
else
LEN=0
output+="$line"
diff --git
a/quickconfig/035-menu.sh
b/quickconfig/035-menu.sh
index
6e48b23
..
9987b46
100644
(file)
--- a/
quickconfig/035-menu.sh
+++ b/
quickconfig/035-menu.sh
@@
-1,6
+1,6
@@
# application menu module for grml-quickconfig
# application menu module for grml-quickconfig
-LINE='print_line "Show an application ${HI
LIGHT}m${NORMAL}enu (${HI
LIGHT_NAME}pdmenu${NORMAL})"'
+LINE='print_line "Show an application ${HI
GHLIGHT}m${NORMAL}enu (${HIGH
LIGHT_NAME}pdmenu${NORMAL})"'
KEY=(m)
MENU_PROGNAME=pdmenu
FUNCTION="run $MENU_PROGNAME"
KEY=(m)
MENU_PROGNAME=pdmenu
FUNCTION="run $MENU_PROGNAME"
diff --git
a/quickconfig/040-grml2hd.sh
b/quickconfig/040-grml2hd.sh
index
f30deaa
..
745663e
100644
(file)
--- a/
quickconfig/040-grml2hd.sh
+++ b/
quickconfig/040-grml2hd.sh
@@
-1,4
+1,4
@@
-LINE='print_line "Install grml to ${HI
LIGHT}h${NORMAL}ard disk (${HI
LIGHT_NAME}grml2hd${NORMAL}"'
+LINE='print_line "Install grml to ${HI
GHLIGHT}h${NORMAL}ard disk (${HIGH
LIGHT_NAME}grml2hd${NORMAL}"'
KEY=(m)
HD_APP=grml2hd
FUNCTION="run $HD_APP"
KEY=(m)
HD_APP=grml2hd
FUNCTION="run $HD_APP"