linuxOS_MC3302/sdk/X-AIOS-LT00-V1.0.4/tools/ubuntu/strings/deploy_source_files.sh
2026-01-30 16:53:24 +08:00

48 lines
1.4 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# copy the language and strings source files to relational directory.
#
ori_src_dir=$1
echo " SOURCE ori_src_dir=$1"
# ../../../core/res/res/strings_xls/
#target evb dir
dst_top_dir=core/res/strings
echo " TARGET evb_tgt_dir=${dst_top_dir}"
#src dir
if [ -d ${ori_src_dir} ]; then
echo " source dir1:${ori_src_dir} exist"
#tgt dir
if [ -d ${dst_top_dir} ]; then
echo " target dir2:${dst_top_dir} exist! "
echo " start copying files..."
tgt_hdr_dir=${dst_top_dir}/../inc
if test -d $tgt_hdr_dir; then
# copy .h
cp -rf ./$1/xos_*.h $tgt_hdr_dir
echo " target dir3:${tgt_hdr_dir} copied."
# copy .c
tgt_source_dir=${dst_top_dir}/src/
if test -d $tgt_source_dir; then
cp -rf ./$1/raw_*.c $tgt_source_dir
cp -rf ./$1/zipped_*.c $tgt_source_dir
echo " target dir4:${tgt_source_dir} copied."
echo " copy files to evb, done"
else
echo " target dir4:${tgt_source_dir} does not exist! quit4."
fi
else
echo " target dir3:${tgt_hdr_dir} does not exist! quit3."
fi
else
echo " target dir2:${dst_top_dir} does not exist! quit2."
fi
else
echo " source dir1:${ori_src_dir} does not exist! quit1."
fi
echo ""