Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lyskom-elisp-client
lyskom-elisp-client
Commits
df82d93e
Commit
df82d93e
authored
Sep 08, 2002
by
David Byers
Browse files
Fix syntax errors on a *real* sh
Detect brain-dead version of sed so we abort rather than create buggy pages
parent
2e1ffc2c
Changes
1
Show whitespace changes
Inline
Side-by-side
web/bin/mkindex
View file @
df82d93e
...
...
@@ -10,7 +10,7 @@ lang_inverse="\([^<]\|<[^/]\|</[^l]\|</l[^a]\|</la[^n]\|</lan[^g]\|</lang[^>]\)*
# Make a swedish version without content
function
extract_language
()
{
extract_language
()
{
lang
=
"
$1
"
inverse
=
"
$2
"
cat
$template
|
\
...
...
@@ -22,13 +22,13 @@ function extract_language () {
}
function
get_lines
()
{
get_lines
()
{
file
=
$1
key
=
$2
grep
-i
"^
$key
="
$file
|
cut
-d
=
-f2-
}
function
get_items
()
{
get_items
()
{
lang
=
$1
output
=
"elisp-client-items.
$lang
"
...
...
@@ -45,6 +45,12 @@ function get_items() {
done
}
TEST
=
`
echo
A |
sed
's/\(A\|B\)/C/g'
`
if
[
"
$TEST
"
=
"A"
]
;
then
echo
"The version of sed on this computer is brain-damaged. Aborting."
exit
1
fi
get_items sv
get_items en
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment