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
    
  • 相关阅读:
    平时十二测
    无题十四
    暑假第十测
    无题十三
    noip错题集
    无题十二
    BZOJ整理
    志愿者招募
    修车
    任务安排
  • 原文地址:https://www.cnblogs.com/chengliu/p/4130650.html
Copyright © 2011-2022 走看看