[solved] copying/renaming a project
-
-
-
I recommend deleting the .pro.user file - it contains absolute paths that may clutter with the original paths of your copy.
-
If you import a project, select "shadow build" in the wizard that pops up. Creator and/or qmake will create any missing build directories.
-
-
-
OK, so maybe a recommended procedure (if it's not documented elsewhere, this might help someone later) is:
- copy the directory structure.
- delete the .pro.user file
- change the build directory in Projects->Build
- modify the name of the .pro file if desired (or edit the TARGET tag in the .pro file)
- run qmake
Did I leave anything out?
-
[quote author="mzimmers" date="1320972557"]OK, so maybe a recommended procedure (if it's not documented elsewhere, this might help someone later) is:
- copy the directory structure.
- delete the .pro.user file
- change the build directory in Projects->Build
- modify the name of the .pro file if desired (or edit the TARGET tag in the .pro file)
- run qmake
[/quote]
You could make a doc note / wiki page for that and it will be documented...
-
Run this script in the folder where your project is located. It will fix rename the files and change their contents accordingly.
@#!/bin/bash
echo "old: $1", "new: $2"rename "s/$1/$2/" *
cd $2
rename "s/$1/$2/" *
find $NEW -type f -exec sed -i "s/$1/$2/g" {} ;echo "Done"@