Files
zhuoli 140315895f 1. Re-initialize linux porting dir.
2. Add BUILD.gn and its components

Signed-off-by: zhuoli <pengzhuoli@huawei.com>
2021-07-07 14:18:53 +08:00

32 lines
476 B
Bash
Executable File

SRC_DIR=
DST_DIR=
PORTING=
while getopts "i:o:p:h" arg
do
case "${arg}" in
"i")
SRC_DIR=${OPTARG}
;;
"o")
DST_DIR=${OPTARG}
;;
"p")
PORTING=${OPTARG}
;;
"h")
echo "help"
;;
?)
echo "unkonw argument"
exit 1
;;
esac
done
if [ ! -d ${DST_DIR} ]; then
mkdir -p ${DST_DIR}
fi
cp -rfp ${SRC_DIR}/* ${DST_DIR}
cp -rfp ${SRC_DIR}/porting/${PORTING}/user/* ${DST_DIR}