Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
ceders-lyskom-elisp-client
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
ceders-lyskom-elisp-client
Commits
df82d93e
Commit
df82d93e
authored
22 years ago
by
David Byers
Browse files
Options
Downloads
Patches
Plain Diff
Fix syntax errors on a *real* sh
Detect brain-dead version of sed so we abort rather than create buggy pages
parent
2e1ffc2c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/bin/mkindex
+9
-3
9 additions, 3 deletions
web/bin/mkindex
with
9 additions
and
3 deletions
web/bin/mkindex
+
9
−
3
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment