Commit af855eea authored by Vitaly Lipatov's avatar Vitaly Lipatov

uniset-codegen: add --path support for set xxls dir

parent 5e87b9aa
...@@ -30,7 +30,7 @@ EOF ...@@ -30,7 +30,7 @@ EOF
} }
#parse command line options #parse command line options
TEMP=`getopt -n $PROG -o h,n:,m:,a,l -l help,name:,main:,no-main,topdir:,alone,ask,local,local-include,add-cc-include,add-hh-include -- "$@"` || exit 1 TEMP=`getopt -n $PROG -o h,n:,m:,a,l -l help,name:,main:,no-main,topdir:,path:,alone,ask,local,local-include,add-cc-include,add-hh-include -- "$@"` || exit 1
eval set -- "$TEMP" eval set -- "$TEMP"
name= name=
...@@ -44,6 +44,7 @@ ask= ...@@ -44,6 +44,7 @@ ask=
localinc=0 localinc=0
add_cc_inc= add_cc_inc=
add_hh_inc= add_hh_inc=
xsltpath=
xls_h="ctl-cpp-h.xsl" xls_h="ctl-cpp-h.xsl"
xls_c="ctl-cpp-cc.xsl" xls_c="ctl-cpp-cc.xsl"
...@@ -98,6 +99,16 @@ while :; do ...@@ -98,6 +99,16 @@ while :; do
xsltdir=. xsltdir=.
;; ;;
--xsltdir)
shift
xsltdir="$1"
;;
--path)
shift
xsltpath="--path $1"
;;
--) shift; break --) shift; break
;; ;;
*) "unrecognized option: $1" *) "unrecognized option: $1"
...@@ -135,6 +146,7 @@ PARAMS=$( echo \ ...@@ -135,6 +146,7 @@ PARAMS=$( echo \
--stringparam XML_FILENAME "${fname}" \ --stringparam XML_FILENAME "${fname}" \
--stringparam CNAME "${name}" \ --stringparam CNAME "${name}" \
--stringparam LOCALINC "${localinc}" \ --stringparam LOCALINC "${localinc}" \
$xsltpath \
) )
# --stringparam ADD_CC_INC "${add_cc_inc}" \ # --stringparam ADD_CC_INC "${add_cc_inc}" \
# --stringparam ADD_HH_INC "${add_hh_inc}" \ # --stringparam ADD_HH_INC "${add_hh_inc}" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment