#!/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