changed getopt that do not take long arguments in bash.
May have a look at https://code.google.com/p/shflags/downloads/list #!/bin/sh # source shflags from current directory . ./shflags # define a 'name' command-line string flag DEFINE_string 'name' 'world' 'name to say hello to' 'n' # parse the command-line FLAGS "$@" || exit 1 eval set -- "${FLAGS_ARGV}" # say hello echo "Hello, ${FLAGS_name}!" git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6212 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
+17
-13
@@ -984,19 +984,23 @@ set_openair_env(){
|
||||
print_help(){
|
||||
echo_success "Name : build_oai - install and build OAI"
|
||||
echo_success "Usage: build_oai.bash -a -b -c -d -eRTAI -m -rREL8 -s -tOAISIM -wEXMIMO -x"
|
||||
echo_success "-a : enable doxygen for documentation (default disabled)"
|
||||
echo_success "-b : disables S1 interface for eNB (default enabled)"
|
||||
echo_success "-c : enables clean OAI build (default disabled)"
|
||||
echo_success "-d : enables debug mode (default disabled)"
|
||||
echo_success "-e : sets realtime mode: RTAI, NONE (default NONE)"
|
||||
echo_success "-l : sets the LTE build target: ENB,EPC,HSS,NONE (default ENB)"
|
||||
echo_success "-m : enables build from the makefile (default disabled)"
|
||||
echo_success "-r : sets the release: REL8, REL10 (default REL8)"
|
||||
echo_success "-s : enables OAI testing and sanity check (default disabled)"
|
||||
echo_success "-t : sets the eNB build target: ALL, SOFTMODEM,OAISIM,UNISIM (default ALL)"
|
||||
echo_success "-w : sets the hardware platform: EXMIMO, USRP (also installs UHD driver), ETHERNET, NONE, (default EXMIMO)"
|
||||
echo_success "-x : enables xforms (default disabled)"
|
||||
echo_success "-z : sets the default build options"
|
||||
echo_success "-a | --doxygen : Enable doxygen for documentation (default disabled)"
|
||||
echo_success "-b | --disable-s1 : Disables S1 interface for eNB (default enabled)"
|
||||
echo_success "-c | --clean : Enables clean OAI build (default disabled)"
|
||||
echo_success "-C | --config-file : Set the config file local path"
|
||||
echo_success "-d | --debug : Enables debug mode (default disabled)"
|
||||
echo_success "-e | --realtime : Sets realtime mode: RTAI, NONE (default NONE)"
|
||||
echo_success "-g | --run-with-gdb : Run with gdb"
|
||||
echo_success "-K | --itti-dump-file : Set the execution events trace file"
|
||||
echo_success "-l | --build-target : Sets the LTE build target: ENB,EPC,HSS,NONE (default ENB)"
|
||||
echo_success "-m | --build-from-makefile : Enables build from the makefile (default disabled)"
|
||||
echo_success "-r | --3gpp-release : Sets the release: REL8, REL10 (default REL8)"
|
||||
echo_success "-s | --check : Enables OAI testing and sanity check (default disabled)"
|
||||
echo_success "-t | --enb-build-target : Sets the eNB build target: ALL, SOFTMODEM,OAISIM,UNISIM (default ALL)"
|
||||
echo_success "-V | --vcd : Log vcd events"
|
||||
echo_success "-w | --hardware : sets the hardware platform: EXMIMO, USRP (also installs UHD driver), ETHERNET, NONE, (default EXMIMO)"
|
||||
echo_success "-x | --xforms : enables xforms (default disabled)"
|
||||
echo_success "-z | --defaults : sets the default build options"
|
||||
}
|
||||
###############################
|
||||
## echo and family
|
||||
|
||||
Reference in New Issue
Block a user