Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
63b7439d
Unverified
Commit
63b7439d
authored
Jan 26, 2021
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change `mruby-config` to print usage on invalid arguments.
Or no argument at all.
parent
34f82f24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
mrbgems/mruby-bin-config/mruby-config
mrbgems/mruby-bin-config/mruby-config
+20
-8
No files found.
mrbgems/mruby-bin-config/mruby-config
View file @
63b7439d
#!/bin/sh
print_help
()
{
echo
"Usage: mruby-config [switches]"
echo
" switches:"
echo
" --cflags print flags passed to compiler"
echo
" --cflags print flags passed to compiler"
echo
" --cflags print flags passed to compiler"
echo
" --ldflags print flags passed to linker"
echo
" --ldflags-before-libs print flags passed to linker before linked libraries"
echo
" --libs print linked libraries"
echo
" --libmruby-path print libmruby path"
echo
" --help print this help"
exit
0
}
if
[
$#
-eq
0
]
;
then
print_help
fi
while
[
$#
-gt
0
]
;
do
case
$1
in
--cflags
)
echo
MRUBY_CFLAGS
;;
...
...
@@ -7,14 +26,7 @@ while [ $# -gt 0 ]; do
--ldflags-before-libs
)
echo
MRUBY_LDFLAGS_BEFORE_LIBS
;;
--libs
)
echo
MRUBY_LIBS
;;
--libmruby-path
)
echo
MRUBY_LIBMRUBY_PATH
;;
--help
)
echo
"Usage: mruby-config [switches]"
echo
" switches:"
echo
" --cflags print flags passed to compiler"
echo
" --ldflags print flags passed to linker"
echo
" --ldflags-before-libs print flags passed to linker before linked libraries"
echo
" --libs print linked libraries"
echo
" --libmruby-path print libmruby path"
exit
0
;;
*
)
print_help
;;
esac
shift
done
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