Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
windows build files
  • Loading branch information
spencersalazar committed Oct 16, 2012
1 parent e84c70b commit a8a5bfe
Show file tree
Hide file tree
Showing 12 changed files with 335 additions and 107 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -15,3 +15,5 @@
.DS_Store

*.tgz
/chugins.opt
/chugins.ncb
5 changes: 5 additions & 0 deletions ABSaturator/.gitignore
@@ -0,0 +1,5 @@
/*.plg
/*.ncb
/*.opt
/Debug
/Release
5 changes: 5 additions & 0 deletions Bitcrusher/.gitignore
@@ -0,0 +1,5 @@
/*.plg
/*.ncb
/*.opt
/Debug
/Release
5 changes: 5 additions & 0 deletions MagicSine/.gitignore
@@ -0,0 +1,5 @@
/*.plg
/*.ncb
/*.opt
/Debug
/Release
117 changes: 117 additions & 0 deletions MagicSine/MagicSine.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions MagicSine/MagicSine.dsw
@@ -0,0 +1,29 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!

###############################################################################

Project: "MagicSine"=.\MagicSine.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

###############################################################################

Global:

Package=<5>
{{{
}}}

Package=<3>
{{{
}}}

###############################################################################

62 changes: 31 additions & 31 deletions chuginate/bootstrap.py 100755 → 100644
@@ -1,31 +1,31 @@
#!/usr/bin/python

import re
import sys

marker = dict()
template = dict()

marker['cpp'] = "\%\(CPP_CODE\)\%"
marker['makefile'] = "\%\(MAKEFILE_CODE\)\%"
marker['makefile.osx'] = "\%\(MAKEFILEOSX_CODE\)\%"
marker['makefile.linux'] = "\%\(MAKEFILELINUX_CODE\)\%"
marker['makefile.win32'] = "\%\(MAKEFILEWIN32_CODE\)\%"
marker['.dsw'] = "\%\(DSW_CODE\)\%"
marker['.dsp'] = "\%\(DSP_CODE\)\%"

template['cpp'] = "template/ChuGin.cpp"
template['makefile'] = "template/makefile"
template['makefile.osx'] = "template/makefile.osx"
template['makefile.linux'] = "template/makefile.linux"
template['makefile.win32'] = "template/makefile.win32"
template['.dsw'] = "template/ChuGin.dsw"
template['.dsp'] = "template/ChuGin.dsp"

code = sys.stdin.read()

for key in marker:
f = open(template[key], 'r')
code = re.sub(marker[key], f.read(), code)

sys.stdout.write(code)
#!/usr/bin/python

import re
import sys

marker = dict()
template = dict()

marker['cpp'] = "\%\(CPP_CODE\)\%"
marker['makefile'] = "\%\(MAKEFILE_CODE\)\%"
marker['makefile.osx'] = "\%\(MAKEFILEOSX_CODE\)\%"
marker['makefile.linux'] = "\%\(MAKEFILELINUX_CODE\)\%"
marker['makefile.win32'] = "\%\(MAKEFILEWIN32_CODE\)\%"
marker['.dsw'] = "\%\(DSW_CODE\)\%"
marker['.dsp'] = "\%\(DSP_CODE\)\%"

template['cpp'] = "template/ChuGin.cpp"
template['makefile'] = "template/makefile"
template['makefile.osx'] = "template/makefile.osx"
template['makefile.linux'] = "template/makefile.linux"
template['makefile.win32'] = "template/makefile.win32"
template['.dsw'] = "template/ChuGin.dsw"
template['.dsp'] = "template/ChuGin.dsp"

code = sys.stdin.read()

for key in marker:
f = open(template[key], 'r')
code = re.sub(marker[key], f.read(), code)

sys.stdout.write(code)
Empty file modified chuginate/chuginate 100755 → 100644
Empty file.
148 changes: 74 additions & 74 deletions chuginate/chuginate.py 100755 → 100644
@@ -1,74 +1,74 @@
#!/usr/bin/python

import sys
import re
import os
import io

if len(sys.argv) != 2 and len(sys.argv) != 3:
print "usage: chugerate chugin_name [destination_directory]"
sys.exit(-1)

chugin_name = sys.argv[1]
if len(sys.argv) >= 3:
dest_dir = sys.argv[2]
else:
dest_dir = sys.argv[1]
os.mkdir(dest_dir)

chugin_lcname = chugin_name.lower()
chugin_ucname = chugin_name.upper()
chugin_initials = re.sub('[a-z]', '', chugin_name).lower()
if len(chugin_initials) == 0:
chugin_initials = chugin_name[0];

def substitute(text):
global chugin_name, chugin_lcname, chugin_ucname, chugin_initials
text = re.sub('\%\(CHUGIN_NAME\)\%', chugin_name, text)
text = re.sub('\%\(CHUGIN_LCNAME\)\%', chugin_lcname, text)
text = re.sub('\%\(CHUGIN_UCNAME\)\%', chugin_ucname, text)
text = re.sub('\%\(CHUGIN_INITIALS\)\%', chugin_initials, text)
return text

# print "name: %s lc: %s initials: %s" % (chugin_name, chugin_lcname, chugin_initials)

code = dict()
filepath = dict()
newlines = dict()

code['cpp'] = u'''%(CPP_CODE)%'''
code['makefile'] = u'''%(MAKEFILE_CODE)%'''
code['makefile.osx'] = u'''%(MAKEFILEOSX_CODE)%'''
code['makefile.linux'] = u'''%(MAKEFILELINUX_CODE)%'''
code['makefile.win32'] = u'''%(MAKEFILEWIN32_CODE)%'''
code['.dsw'] = u'''%(DSW_CODE)%'''
code['.dsp'] = u'''%(DSP_CODE)%'''

filepath['cpp'] = "%s/%s.cpp" % (dest_dir, chugin_name)
filepath['makefile'] = "%s/makefile" % (dest_dir)
filepath['makefile.osx'] = "%s/makefile.osx" % (dest_dir)
filepath['makefile.linux'] = "%s/makefile.linux" % (dest_dir)
filepath['makefile.win32'] = "%s/makefile.win32" % (dest_dir)
filepath['.dsw'] = "%s/%s.dsw" % (dest_dir, chugin_name)
filepath['.dsp'] = "%s/%s.dsp" % (dest_dir, chugin_name)

newlines['.dsw'] = '\r\n'
newlines['.dsp'] = '\r\n'

code['cpp'] = substitute(code['cpp'])
code['makefile'] = substitute(code['makefile'])
code['.dsw'] = substitute(code['.dsw'])
code['.dsp'] = substitute(code['.dsp'])

for key in code:
if key in newlines:
nl = newlines[key]
else:
nl = '\n'
f = io.open(filepath[key], "wt", newline=nl)
f.write(code[key])
f.close()




#!/usr/bin/python

import sys
import re
import os
import io

if len(sys.argv) != 2 and len(sys.argv) != 3:
print "usage: chugerate chugin_name [destination_directory]"
sys.exit(-1)

chugin_name = sys.argv[1]
if len(sys.argv) >= 3:
dest_dir = sys.argv[2]
else:
dest_dir = sys.argv[1]
os.mkdir(dest_dir)

chugin_lcname = chugin_name.lower()
chugin_ucname = chugin_name.upper()
chugin_initials = re.sub('[a-z]', '', chugin_name).lower()
if len(chugin_initials) == 0:
chugin_initials = chugin_name[0];

def substitute(text):
global chugin_name, chugin_lcname, chugin_ucname, chugin_initials
text = re.sub('\%\(CHUGIN_NAME\)\%', chugin_name, text)
text = re.sub('\%\(CHUGIN_LCNAME\)\%', chugin_lcname, text)
text = re.sub('\%\(CHUGIN_UCNAME\)\%', chugin_ucname, text)
text = re.sub('\%\(CHUGIN_INITIALS\)\%', chugin_initials, text)
return text

# print "name: %s lc: %s initials: %s" % (chugin_name, chugin_lcname, chugin_initials)

code = dict()
filepath = dict()
newlines = dict()

code['cpp'] = u'''%(CPP_CODE)%'''
code['makefile'] = u'''%(MAKEFILE_CODE)%'''
code['makefile.osx'] = u'''%(MAKEFILEOSX_CODE)%'''
code['makefile.linux'] = u'''%(MAKEFILELINUX_CODE)%'''
code['makefile.win32'] = u'''%(MAKEFILEWIN32_CODE)%'''
code['.dsw'] = u'''%(DSW_CODE)%'''
code['.dsp'] = u'''%(DSP_CODE)%'''

filepath['cpp'] = "%s/%s.cpp" % (dest_dir, chugin_name)
filepath['makefile'] = "%s/makefile" % (dest_dir)
filepath['makefile.osx'] = "%s/makefile.osx" % (dest_dir)
filepath['makefile.linux'] = "%s/makefile.linux" % (dest_dir)
filepath['makefile.win32'] = "%s/makefile.win32" % (dest_dir)
filepath['.dsw'] = "%s/%s.dsw" % (dest_dir, chugin_name)
filepath['.dsp'] = "%s/%s.dsp" % (dest_dir, chugin_name)

newlines['.dsw'] = '\r\n'
newlines['.dsp'] = '\r\n'

code['cpp'] = substitute(code['cpp'])
code['makefile'] = substitute(code['makefile'])
code['.dsw'] = substitute(code['.dsw'])
code['.dsp'] = substitute(code['.dsp'])

for key in code:
if key in newlines:
nl = newlines[key]
else:
nl = '\n'
f = io.open(filepath[key], "wt", newline=nl)
f.write(code[key])
f.close()




0 comments on commit a8a5bfe

Please sign in to comment.