|
@@ -19,9 +19,10 @@
|
|
|
|
|
|
|
|
#PRJS="PRJ_USASL_AC_I3_O1 PRJ_USASL_AC_I3_O3"
|
|
#PRJS="PRJ_USASL_AC_I3_O1 PRJ_USASL_AC_I3_O3"
|
|
|
#PRJS="PRJ_XIAN_AC_I1_O1_P4 PRJ_XIAN_AC_I1_O1_P8"
|
|
#PRJS="PRJ_XIAN_AC_I1_O1_P4 PRJ_XIAN_AC_I1_O1_P8"
|
|
|
-PRJS="PRJ_ITK_AC_I1_O1 PRJ_ITK_AC_I3_O1"
|
|
|
|
|
|
|
+#PRJS="PRJ_ITK_AC_I1_O1 PRJ_ITK_AC_I3_O1"
|
|
|
#PRJS="PRJ_LITECH_AC_I1_O1 PRJ_LITECH_AC_I3_O1"
|
|
#PRJS="PRJ_LITECH_AC_I1_O1 PRJ_LITECH_AC_I3_O1"
|
|
|
#PRJS="PRJ_RELEASE_DC_I_DC_O PRJ_RELEASE_AC_I1_O1 PRJ_RELEASE_AC_I3_O1 PRJ_RELEASE_AC_I3_O3"
|
|
#PRJS="PRJ_RELEASE_DC_I_DC_O PRJ_RELEASE_AC_I1_O1 PRJ_RELEASE_AC_I3_O1 PRJ_RELEASE_AC_I3_O3"
|
|
|
|
|
+PRJS="PRJ_LITECH_AC_I1_O1 PRJ_LITECH_AC_I3_O1 PRJ_XIAN_AC_I1_O1_P4 PRJ_XIAN_AC_I1_O1_P8"
|
|
|
|
|
|
|
|
|
|
|
|
|
fulldir=$(realpath $0)
|
|
fulldir=$(realpath $0)
|
|
@@ -36,14 +37,13 @@ function prj_enable()
|
|
|
fcfg=$curdir/pro/config/cfg.h
|
|
fcfg=$curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
#clear space
|
|
#clear space
|
|
|
- sed -i 's|^[[:space:]]*||g' $fcfg
|
|
|
|
|
|
|
+ sed -i 's|^[[:space:]]\(#define PRJ_*\)|\1|g' $fcfg
|
|
|
|
|
|
|
|
#mask all PRJ_XXX define
|
|
#mask all PRJ_XXX define
|
|
|
sed -i 's|^\(.*\)\(#define PRJ_*\)|//\2|g' $fcfg
|
|
sed -i 's|^\(.*\)\(#define PRJ_*\)|//\2|g' $fcfg
|
|
|
|
|
|
|
|
#enable the needed PRJ_XXX define
|
|
#enable the needed PRJ_XXX define
|
|
|
-
|
|
|
|
|
- sed -i "s|^//\(#define $1*\)|\1|g" $fcfg
|
|
|
|
|
|
|
+ sed -i "s|^//\(#define $1.*\)|\1|g" $fcfg
|
|
|
}
|
|
}
|
|
|
function prj_unmask()
|
|
function prj_unmask()
|
|
|
{
|
|
{
|
|
@@ -71,7 +71,7 @@ function do_copy()
|
|
|
elif [ "$1" = "PRJ_XIAN_AC_I1_O1_P8" ]; then
|
|
elif [ "$1" = "PRJ_XIAN_AC_I1_O1_P8" ]; then
|
|
|
name=ac_in1_out1_p8_xian
|
|
name=ac_in1_out1_p8_xian
|
|
|
|
|
|
|
|
- cp -f $custdir/db/ac_i1_o1_chinese_xian.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
|
|
|
|
|
+ #cp -f $custdir/db/ac_i1_o1_chinese_xian.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
|
cp -f $custdir/logo/logo_neuter.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
cp -f $custdir/logo/logo_neuter.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
|
elif [ "$1" = "PRJ_ITK_AC_I1_O1" ]; then
|
|
elif [ "$1" = "PRJ_ITK_AC_I1_O1" ]; then
|
|
|
name=ac_in1_out1_russia_itk
|
|
name=ac_in1_out1_russia_itk
|
|
@@ -81,7 +81,7 @@ function do_copy()
|
|
|
elif [ "$1" = "PRJ_ITK_AC_I3_O1" ]; then
|
|
elif [ "$1" = "PRJ_ITK_AC_I3_O1" ]; then
|
|
|
name=ac_in3_out1_russia_itk
|
|
name=ac_in3_out1_russia_itk
|
|
|
|
|
|
|
|
- cp -f $custdir/db/ac_i3_o1_russian.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
|
|
|
|
|
+ #cp -f $custdir/db/ac_i3_o1_russian.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
|
cp -f $custdir/logo/logo_itk.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
cp -f $custdir/logo/logo_itk.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
|
elif [ "$1" = "PRJ_RELEASE_DC_I_DC_O" ]; then
|
|
elif [ "$1" = "PRJ_RELEASE_DC_I_DC_O" ]; then
|
|
|
name=dc_in_dc_out_release
|
|
name=dc_in_dc_out_release
|
|
@@ -103,7 +103,7 @@ function do_copy()
|
|
|
|
|
|
|
|
#cp -f $custdir/db/ac_i3_o3_chinese.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
#cp -f $custdir/db/ac_i3_o3_chinese.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
|
cp -f $custdir/logo/logo_neuter.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
cp -f $custdir/logo/logo_neuter.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
|
- elif [ "$PRJ" = "PRJ_LITECH_AC_I1_O1" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_LITECH_AC_I1_O1" ]; then
|
|
|
name=ac_in1_out1_litech
|
|
name=ac_in1_out1_litech
|
|
|
|
|
|
|
|
#cp -f $custdir/db/ac_i1_o1_english.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
#cp -f $custdir/db/ac_i1_o1_english.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
@@ -123,7 +123,7 @@ function do_copy()
|
|
|
|
|
|
|
|
#cp -f $custdir/db/ac_i3_o1_english.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
#cp -f $custdir/db/ac_i3_o1_english.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
|
cp -f $custdir/logo/logo_neuter.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
cp -f $custdir/logo/logo_neuter.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
|
- elif [ "$PRJ" = "PRJ_USASL_AC_I3_O3" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_USASL_AC_I3_O3" ]; then
|
|
|
name=ac_in3_out3_usa_sl
|
|
name=ac_in3_out3_usa_sl
|
|
|
|
|
|
|
|
#cp -f $custdir/db/ac_i3_o3_english.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
#cp -f $custdir/db/ac_i3_o3_english.db $curdir/output/t113i/root/run/app/pdu_dat.db
|