zoukankan      html  css  js  c++  java
  • MTK android创建新工程脚本

    #!/bin/sh
    PROJECT_PATH=$PWD
    echo ">>>>> Begin to Create New Project" `date`
    read -p "your old project name: " OLDPROJECT
    read -p "your new project name: " NEWPROJECT
    echo $OLDPROJECT $NEWPROJECT
    
    cd $PROJECT_PATH
    
    rm -rf mediatek/config/$NEWPROJECT
    rm -rf mediatek/custom/$NEWPROJECT
    rm -rf build/target/product/$NEWPROJECT.mk
    rm -rf bootable/bootloader/lk/project/$NEWPROJECT.mk
    rm -rf vendor/mediatek/$NEWPROJECT
    
    cp -a mediatek/config/$OLDPROJECT mediatek/config/$NEWPROJECT
    cp -a mediatek/custom/$OLDPROJECT mediatek/custom/$NEWPROJECT
    cp -a build/target/product/$OLDPROJECT.mk build/target/product/$NEWPROJECT.mk
    cp -a bootable/bootloader/lk/project/$OLDPROJECT.mk bootable/bootloader/lk/project/$NEWPROJECT.mk
    cp -a vendor/mediatek/$OLDPROJECT vendor/mediatek/$NEWPROJECT
    mv vendor/mediatek/$NEWPROJECT/artifacts/out/target/product/$OLDPROJECT vendor/mediatek/$NEWPROJECT/artifacts/out/target/product/$NEWPROJECT
    sed -i "s/$OLDPROJECT/$NEWPROJECT/g" vendor/mediatek/$NEWPROJECT/artifacts/target.txt
    
  • 相关阅读:
    MQTT
    群晖搭建webssh
    OSI 协议
    centos7 yum安装ffmpeg,以及ffmpeg的简单用法
    centos7 RTMP直播服务器搭建
    elasticsearch
    H5的storage
    bootstrap 列表組
    eclipse的debug模式下启动不了tomcat
    bootstrap collapse
  • 原文地址:https://www.cnblogs.com/chengliu/p/4130650.html
Copyright © 2011-2022 走看看