Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
f0e34ebc
Commit
f0e34ebc
authored
12 years ago
by
Don Kjer
Browse files
Options
Downloads
Patches
Plain Diff
Adding --skip-gridargs argument to secondlife wrapper script on linux.
parent
a589bc99
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
indra/newview/linux_tools/wrapper.sh
+17
-3
17 additions, 3 deletions
indra/newview/linux_tools/wrapper.sh
with
17 additions
and
3 deletions
indra/newview/linux_tools/wrapper.sh
+
17
−
3
View file @
f0e34ebc
...
...
@@ -117,18 +117,32 @@ export LD_LIBRARY_PATH="$PWD/lib:${LD_LIBRARY_PATH}"
# Simply embedding $(<etc/gridargs.dat) into a command line treats each of
# Second, Life and Developer as separate args -- no good. We need bash to
# process quotes using eval.
# First read it without scanning, then scan that string. Break quoted words
# First, check if we have been instructed to skip reading in gridargs.dat:
skip_gridargs
=
false
argnum
=
0
for
ARG
in
"
$@
"
;
do
if
[
"--skip-gridargs"
==
"
$ARG
"
]
;
then
skip_gridargs
=
true
else
ARGS[
$argnum
]=
"
$ARG
"
argnum
=
$((
$argnum
+
1
))
fi
done
# Second, read it without scanning, then scan that string. Break quoted words
# into a bash array. Note that if gridargs.dat is empty, or contains only
# whitespace, the resulting gridargs array will be empty -- zero entries --
# therefore "${gridargs[@]}" entirely vanishes from the command line below,
# just as we want.
eval
gridargs
=(
"
$(
<etc/gridargs.dat
)
"
)
if
!
$skip_gridargs
;
then
eval
gridargs
=(
"
$(
<etc/gridargs.dat
)
"
)
fi
# Run the program.
# Don't quote $LL_WRAPPER because, if empty, it should simply vanish from the
# command line. But DO quote "$@": preserve separate args as individually
# quoted. Similar remarks about the contents of gridargs.
$LL_WRAPPER
bin/do-not-directly-run-secondlife-bin
"
${
gridargs
[@]
}
"
"
$
@
"
$LL_WRAPPER
bin/do-not-directly-run-secondlife-bin
"
${
gridargs
[@]
}
"
"
$
{
ARGS
[@]
}
"
LL_RUN_ERR
=
$?
# Handle any resulting errors
...
...
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