|
@@ -1,25 +1,25 @@
|
|
|
|
|
|
|
|
-#PRJS="PRJ_XIAN_P4"
|
|
|
|
|
-#PRJS="PRJ_XIAN_P8"
|
|
|
|
|
|
|
+#PRJS="PRJ_XIAN_AC_I1_O1_P4"
|
|
|
|
|
+#PRJS="PRJ_XIAN_AC_I1_O1_P8"
|
|
|
#PRJS="PRJ_ITK_AC_I1_O1"
|
|
#PRJS="PRJ_ITK_AC_I1_O1"
|
|
|
#PRJS="PRJ_ITK_AC_I3_O1"
|
|
#PRJS="PRJ_ITK_AC_I3_O1"
|
|
|
#PRJS="PRJ_LITECH_AC_I1_O1"
|
|
#PRJS="PRJ_LITECH_AC_I1_O1"
|
|
|
#PRJS="PRJ_LITECH_AC_I3_O1"
|
|
#PRJS="PRJ_LITECH_AC_I3_O1"
|
|
|
-#PRJS="PRJ_ANDERSON"
|
|
|
|
|
|
|
+#PRJS="PRJ_ANDERSON_AC_I3_O3"
|
|
|
#PRJS="PRJ_USASL_AC_I3_O1"
|
|
#PRJS="PRJ_USASL_AC_I3_O1"
|
|
|
#PRJS="PRJ_USASL_AC_I3_O3"
|
|
#PRJS="PRJ_USASL_AC_I3_O3"
|
|
|
-#PRJS="PRJ_HYPERTEC"
|
|
|
|
|
-#PRJS="PRJ_INSPUR"
|
|
|
|
|
|
|
+#PRJS="PRJ_HYPERTEC_AC_I3_O1"
|
|
|
|
|
+#PRJS="PRJ_INSPUR_DC_I_DC_O"
|
|
|
#PRJS="PRJ_RELEASE_DC_I_DC_O"
|
|
#PRJS="PRJ_RELEASE_DC_I_DC_O"
|
|
|
#PRJS="PRJ_RELEASE_AC_I1_O1"
|
|
#PRJS="PRJ_RELEASE_AC_I1_O1"
|
|
|
#PRJS="PRJ_RELEASE_AC_I3_O1"
|
|
#PRJS="PRJ_RELEASE_AC_I3_O1"
|
|
|
#PRJS="PRJ_RELEASE_AC_I3_O3"
|
|
#PRJS="PRJ_RELEASE_AC_I3_O3"
|
|
|
-#PRJS="PRJ_STSC_I3_O3"
|
|
|
|
|
|
|
+PRJS="PRJ_STSC_I3_O3"
|
|
|
#PRJS="PRJ_TEST"
|
|
#PRJS="PRJ_TEST"
|
|
|
|
|
|
|
|
#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_P4 PRJ_XIAN_P8"
|
|
|
|
|
-PRJS="PRJ_ITK_AC_I1_O1 PRJ_ITK_AC_I3_O1"
|
|
|
|
|
|
|
+#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_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"
|
|
|
|
|
|
|
@@ -30,135 +30,119 @@ curdir=$(dirname $fulldir)
|
|
|
custdir=$curdir/cust_data
|
|
custdir=$curdir/cust_data
|
|
|
name=null
|
|
name=null
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+function prj_enable()
|
|
|
|
|
+{
|
|
|
|
|
+ fcfg=$curdir/pro/config/cfg.h
|
|
|
|
|
+
|
|
|
|
|
+ #clear space
|
|
|
|
|
+ sed -i 's|^[[:space:]]*||g' $fcfg
|
|
|
|
|
+
|
|
|
|
|
+ #mask all PRJ_XXX define
|
|
|
|
|
+ sed -i 's|^\(.*\)\(#define PRJ_*\)|//\2|g' $fcfg
|
|
|
|
|
+
|
|
|
|
|
+ #enable the needed PRJ_XXX define
|
|
|
|
|
+
|
|
|
|
|
+ sed -i "s|^//\(#define $1*\)|\1|g" $fcfg
|
|
|
|
|
+}
|
|
|
|
|
+function prj_unmask()
|
|
|
|
|
+{
|
|
|
|
|
+ prj=$1
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
function do_copy()
|
|
function do_copy()
|
|
|
{
|
|
{
|
|
|
echo do_copy ...
|
|
echo do_copy ...
|
|
|
|
|
|
|
|
- PRJ=$1
|
|
|
|
|
|
|
+ flag=1
|
|
|
|
|
|
|
|
rm -f $curdir/output/t113i/etc/network/interfaces
|
|
rm -f $curdir/output/t113i/etc/network/interfaces
|
|
|
mkdir -p $curdir/output/t113i/root/run/app/image
|
|
mkdir -p $curdir/output/t113i/root/run/app/image
|
|
|
- rm -rf $curdir/output/t113i/root/run/web
|
|
|
|
|
|
|
+ cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
|
|
|
- if [ "$PRJ" = "PRJ_XIAN_P4" ]; then
|
|
|
|
|
|
|
+ if [ "$1" = "PRJ_XIAN_AC_I1_O1_P4" ]; then
|
|
|
name=ac_in1_out1_p4_xian
|
|
name=ac_in1_out1_p4_xian
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_xian_p4.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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 [ "$PRJ" = "PRJ_XIAN_P8" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_XIAN_AC_I1_O1_P8" ]; then
|
|
|
name=ac_in1_out1_p8_xian
|
|
name=ac_in1_out1_p8_xian
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_xian_p8.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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 [ "$PRJ" = "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
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_russia_itk.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
cp -f $custdir/db/ac_i1_o1_russian.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
cp -f $custdir/db/ac_i1_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 [ "$PRJ" = "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 -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_russia_itk.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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 [ "$PRJ" = "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
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_general.h $curdir/pro/config/cfg.h
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
cp -f $custdir/db/dc_i_dc_o_chinese.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
cp -f $custdir/db/dc_i_dc_o_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_RELEASE_AC_I1_O1" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_RELEASE_AC_I1_O1" ]; then
|
|
|
name=ac_in1_out1_release
|
|
name=ac_in1_out1_release
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_general.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
cp -f $custdir/db/ac_i1_o1_chinese.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
cp -f $custdir/db/ac_i1_o1_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_RELEASE_AC_I3_O1" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_RELEASE_AC_I3_O1" ]; then
|
|
|
name=ac_in3_out1_release
|
|
name=ac_in3_out1_release
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_general.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
cp -f $custdir/db/ac_i3_o1_chinese.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
cp -f $custdir/db/ac_i3_o1_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_RELEASE_AC_I3_O3" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_RELEASE_AC_I3_O3" ]; then
|
|
|
name=ac_in3_out3_release
|
|
name=ac_in3_out3_release
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_general.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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 [ "$PRJ" = "PRJ_LITECH_AC_I1_O1" ]; then
|
|
|
name=ac_in1_out1_litech
|
|
name=ac_in1_out1_litech
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_litech.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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
|
|
|
cp -f $custdir/logo/logo_litech.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
cp -f $custdir/logo/logo_litech.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
|
- elif [ "$PRJ" = "PRJ_LITECH_AC_I3_O1" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_LITECH_AC_I3_O1" ]; then
|
|
|
name=ac_in3_out1_litech
|
|
name=ac_in3_out1_litech
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_litech.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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_litech.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
cp -f $custdir/logo/logo_litech.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
|
- elif [ "$PRJ" = "PRJ_ANDERSON" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_ANDERSON_AC_I3_O3" ]; then
|
|
|
name=ac_in3_out3_anderson
|
|
name=ac_in3_out3_anderson
|
|
|
- cp -rf $custdir/web/anderson $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_anderson.h $curdir/pro/config/cfg.h
|
|
|
|
|
-
|
|
|
|
|
- #cp -f $custdir/etc/interfaces $curdir/output/t113i/etc/network/
|
|
|
|
|
|
|
+
|
|
|
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
|
|
|
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_O1" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_USASL_AC_I3_O1" ]; then
|
|
|
name=ac_in3_out1_usa_sl
|
|
name=ac_in3_out1_usa_sl
|
|
|
- #cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/web816/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_usa_sl.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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 [ "$PRJ" = "PRJ_USASL_AC_I3_O3" ]; then
|
|
|
name=ac_in3_out3_usa_sl
|
|
name=ac_in3_out3_usa_sl
|
|
|
- #cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/web816/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_hypertec.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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
|
|
|
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_HYPERTEC" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_HYPERTEC" ]; then
|
|
|
name=ac_in3_out1_hypertec
|
|
name=ac_in3_out1_hypertec
|
|
|
- cp -rf $custdir/cfg/cfg_hypertec.h $curdir/pro/config/cfg.h
|
|
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
|
|
|
|
|
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_hypertec.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
cp -f $custdir/logo/logo_hypertec.png $curdir/output/t113i/root/run/app/image/logo.png
|
|
|
- elif [ "$PRJ" = "PRJ_INSPUR" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_INSPUR_DC_I_DC_O" ]; then
|
|
|
name=dc_in1_out1_inspur
|
|
name=dc_in1_out1_inspur
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_inspur.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
cp -f $custdir/db/dc_i_dc_o_chinese.db $curdir/output/t113i/root/run/app/pdu_dat.db
|
|
cp -f $custdir/db/dc_i_dc_o_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_TEST" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_TEST" ]; then
|
|
|
name=ac_in3_out1_test
|
|
name=ac_in3_out1_test
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_test.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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_STSC_I3_O3" ]; then
|
|
|
|
|
|
|
+ elif [ "$1" = "PRJ_STSC_I3_O3" ]; then
|
|
|
name=ac_in3_out3_stsc
|
|
name=ac_in3_out3_stsc
|
|
|
- cp -rf $custdir/web/general $curdir/output/t113i/root/run/web
|
|
|
|
|
- cp -rf $custdir/cfg/cfg_stsc.h $curdir/pro/config/cfg.h
|
|
|
|
|
|
|
|
|
|
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
|
|
|
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
|
|
@@ -166,6 +150,8 @@ function do_copy()
|
|
|
echo error! $RPJ not define!!!
|
|
echo error! $RPJ not define!!!
|
|
|
exit 1
|
|
exit 1
|
|
|
fi
|
|
fi
|
|
|
|
|
+
|
|
|
|
|
+ prj_enable $1
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function do_compile()
|
|
function do_compile()
|
|
@@ -173,9 +159,11 @@ function do_compile()
|
|
|
echo do_compile ...
|
|
echo do_compile ...
|
|
|
|
|
|
|
|
cd $curdir/pro
|
|
cd $curdir/pro
|
|
|
- rm -rf build && mkdir build
|
|
|
|
|
- cd build && cmake ..
|
|
|
|
|
- make
|
|
|
|
|
|
|
+ rm -rf build; mkdir build; cd build
|
|
|
|
|
+ cmake .. && make
|
|
|
|
|
+ if [ $? -gt 0 ]; then
|
|
|
|
|
+ exit 1
|
|
|
|
|
+ fi
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function do_pack()
|
|
function do_pack()
|