| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | print_helpscip-shell shell shell-project 0.0.0 print_help().() |
| 4 | { |
| 5 | echoscip-shell system . . echo. "Usage: mruby-config [switches]" |
| 6 | echoscip-shell system . . echo. " switches:" |
| 7 | echoscip-shell system . . echo. " --cc print C compiler name" |
| 8 | echoscip-shell system . . echo. " --cflags print flags passed to C compiler" |
| 9 | echoscip-shell system . . echo. " --cxx print C++ compiler name" |
| 10 | echoscip-shell system . . echo. " --cxxflags print flags passed to C++ compiler" |
| 11 | echoscip-shell system . . echo. " --as print assembler name" |
| 12 | echoscip-shell system . . echo. " --asflags print flags passed to assembler" |
| 13 | echoscip-shell system . . echo. " --objc print Objective C compiler name" |
| 14 | echoscip-shell system . . echo. " --objcflags print flags passed to Objective C compiler" |
| 15 | echoscip-shell system . . echo. " --ld print linker name" |
| 16 | echoscip-shell system . . echo. " --ldflags print flags passed to linker" |
| 17 | echoscip-shell system . . echo. " --ldflags-before-libs print flags passed to linker before linked libraries" |
| 18 | echoscip-shell system . . echo. " --libs print linked libraries" |
| 19 | echoscip-shell system . . echo. " --libmruby-path print libmruby path" |
| 20 | echoscip-shell system . . echo. " --help print this help" |
| 21 | exit 0 |
| 22 | } |
| 23 | |
| 24 | if [scip-shell system . . `[`. $# -eq 0 ]; then |
| 25 | print_helpscip-shell shell shell-project 0.0.0 print_help(). |
| 26 | fi |
| 27 | |
| 28 | while [scip-shell system . . `[`. $# -gt 0 ]; do |
| 29 | case $1 in |
| 30 | --cc) echoscip-shell system . . echo. MRUBY_CC;; |
| 31 | --cflags) echoscip-shell system . . echo. MRUBY_CFLAGS;; |
| 32 | --cxx) echoscip-shell system . . echo. MRUBY_CXX;; |
| 33 | --cxxflags) echoscip-shell system . . echo. MRUBY_CXXFLAGS;; |
| 34 | --as) echoscip-shell system . . echo. MRUBY_AS;; |
| 35 | --asflags) echoscip-shell system . . echo. MRUBY_ASFLAGS;; |
| 36 | --objc) echoscip-shell system . . echo. MRUBY_OBJC;; |
| 37 | --objcflags) echoscip-shell system . . echo. MRUBY_OBJCFLAGS;; |
| 38 | --ld) echoscip-shell system . . echo. MRUBY_LD;; |
| 39 | --ldflags) echoscip-shell system . . echo. MRUBY_LDFLAGS;; |
| 40 | --ldflags-before-libs) echoscip-shell system . . echo. MRUBY_LDFLAGS_BEFORE_LIBS;; |
| 41 | --libs) echoscip-shell system . . echo. MRUBY_LIBS;; |
| 42 | --libmruby-path) echoscip-shell system . . echo. MRUBY_LIBMRUBY_PATH;; |
| 43 | *) print_helpscip-shell shell shell-project 0.0.0 print_help().;; |
| 44 | esac |
| 45 | shift |
| 46 | done |