Jun 1, 2009 at 4:32pm
When i make an external, i usually duplicate an existing one. I got really tired of going through and doing find and replace in multiple files for Xcode and Visual Studio, so i decided to make a bash script and folder layout (with template projects) to automate the process.
To duplicate a project you simply have to open a terminal window, cd to your max external projects folder and type:
sh duplicate.sh [inputprojectname] [outputprojectname]
oliver-larkins-macbook-pro-15:MaxBuild oli$ sh duplicate.sh mb.msp~ ol.mynewmspexternal~
The script copies your project and then goes through all the files and substitutes the old project name for the new one you specify, both in the file name and inside the files. When making changes inside the c or cpp files, the class/function/struct names etc. are substituted but tildes and dots are removed where they would cause problems for the compiler. It includes the following template externals, which have VS2008 express and Xcode 3.1 projects:
Jun 5, 2009 at 11:04am
i noticed that the xcode projects are building to the wrong place…will fix this in the next version
Jun 5, 2009 at 12:22pm
This sounds great. Thanks for sharing this Oli!
You must be logged in to reply to this topic.