[solved] copying/renaming a project

Page  
2

November 11, 2011

Eddy Eddy
Area 51 Engineer
1296 posts

mzimmers wrote:
OK, so maybe a recommended procedure (if it’s not documented elsewhere, this might help someone later) is:

1. copy the directory structure.
2. delete the .pro.user file
3. change the build directory in Projects->Build
4. modify the name of the .pro file if desired (or edit the TARGET tag in the .pro file)
5. run qmake

You could make a doc note / wiki page for that and it will be documented…

 Signature 

Qt Certified Specialist
Qt Ambassador

January 13, 2013

seaworthy seaworthy
Lab Rat
1 posts

Run this script in the folder where your project is located. It will fix rename the files and change their contents accordingly.

  1. #!/bin/bash
  2. echo "old: $1", "new: $2"
  3.  
  4. rename "s/$1/$2/" *
  5. cd $2
  6. rename "s/$1/$2/" *
  7. find $NEW -type f -exec sed -i "s/$1/$2/g" {} \;
  8.  
  9. echo "Done"

Page  
2

  ‹‹ Various usability problems with Creator 2.3.1 on OSX      Need feature auto-completion after one character in Qt Creator ››

You must log in to post a reply. Not a member yet? Register here!