rhelgeby / smprojectbase

Automatically exported from code.google.com/p/smprojectbase
0 stars 0 forks source link

Installation script #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Since no one is going to call their plugin "project" and a lot in the code 
must be renamed, this could be done by a installation script.

Based on a configuration file for the script it will do searching and 
replacing in the code that has a certain markup (a certain name prefix or 
other compilable markup).

Original issue reported on code.google.com by richard.helgeby@gmail.com on 12 Feb 2010 at 10:16

GoogleCodeExporter commented 9 years ago
I thought about how I was going to do this.

I've been trying to make everything I possibly can dependent on defines.  The 
installation at most would just rename folders and the .sp file, since (besides 
project.inc) that's all I had to change to prepare it for Red Rover.

Even cvars/command names are created through wrapper functions to put the right 
prefix 
on them, as set by a define in project.inc

Original comment by andrewbo...@gmail.com on 13 Feb 2010 at 1:10

GoogleCodeExporter commented 9 years ago
I could actually make a C++ program to do this now :P

It would rename the files and even set the defines.  It would take an input 
file like

projectname="Red Rover"
shortname="redrover"
etc..

and it would require a path to a VANILLA project dir, and it would just do 
everything for you.  I'm kind of interested in trying this now :P  An actual 
useful application of my C++ skills!

Although this would be even simpler as a web page with forms and a submit 
button that spits out a zip. :P

Original comment by andrewbo...@gmail.com on 27 Mar 2011 at 8:09

GoogleCodeExporter commented 9 years ago
If you do, commit this code in its own folder in project-dev. ^^

Original comment by richard.helgeby@gmail.com on 27 Mar 2011 at 3:15