Is there a way to change a .pro , .ui and .h names if the project is done? How to do it?
Is there a way to change a .pro , .ui and .h names if the project is done? How to do it?
#/bin/bash
#Wed Aug 10 10:30:12 AM EDT 2022
# how to copy a QT project to a new name
set -x
echo -n enter oldname
read oldName
echo -n enter newname
read newName
cp -a "$oldName" "$newName"
mv "$newName/$oldName.pro" "$newName/$newName.pro"
mv "$newName/$oldName.pro.user" "$newName/$newName.pro.user"
sed -i "s/$oldName/$newName/g" "$newName/$newName.pro.user"
echo "Now startup Qt and open existing file $newName/$newName.pro"
echo "and run a build all configurations"
------end of bash script------------