a grand renaming so that the most significant portion of the name comes first

This commit is contained in:
Dan Buch
2012-03-03 21:45:20 -05:00
parent c8b8078175
commit f4f448926d
1300 changed files with 0 additions and 234 deletions

View File

@@ -1,2 +0,0 @@
dist/*.swf
dist/*.html

View File

@@ -1,24 +0,0 @@
[submodule "HelloWorld"]
path = HelloWorld
url = git@github.com:meatballhat/HelloWorld.git
[submodule "flixel"]
path = flixel
url = git@github.com:meatballhat/flixel.git
[submodule "FlxInvaders"]
path = FlxInvaders
url = git@github.com:meatballhat/Flx-Invaders.git
[submodule "FlxCollisions"]
path = FlxCollisions
url = git@github.com:meatballhat/FlxCollisions.git
[submodule "FlxTeroids"]
path = FlxTeroids
url = git@github.com:meatballhat/FlxTeroids.git
[submodule "FlxBlur"]
path = FlxBlur
url = git@github.com:meatballhat/FlxBlur.git
[submodule "FlxBloom"]
path = FlxBloom
url = git@github.com:meatballhat/FlxBloom.git
[submodule "Mode"]
path = Mode
url = git@github.com:meatballhat/Mode.git

Submodule PracticingFlixel/FlxBloom deleted from 3c6eb4461d

Submodule PracticingFlixel/FlxBlur deleted from 91c0421392

Submodule PracticingFlixel/FlxCollisions deleted from 6864eceee4

Submodule PracticingFlixel/FlxInvaders deleted from 3ee355b5d1

Submodule PracticingFlixel/FlxTeroids deleted from 18f31fccb6

Submodule PracticingFlixel/HelloWorld deleted from 9e09b278c8

View File

@@ -1,42 +0,0 @@
TOP := $(PWD)
FLIXEL := $(TOP)/flixel
PYTHON := python2.6
WRAP := $(TOP)/flash_html_wrap.py
DIST := $(TOP)/dist
MXMLC := mxmlc
MXMLC_FLAGS := -sp $(FLIXEL)
PROJECTS = \
FlxInvaders \
FlxBloom \
FlxBlur \
FlxCollisions \
FlxTeroids \
HelloWorld \
Mode
mkproject = \
cd $(project)/src && $(MAKE) && \
cd $(TOP) && \
$(call mkhtmlwrap,$(project)) && \
cd $(TOP) ;
mkhtmlwrap = \
cp $(TOP)/$(1)/src/$(1).swf $(DIST)/$(1).swf && \
$(PYTHON) $(WRAP) -P $(DIST)/$(1).properties > $(DIST)/$(1).html
%.html: %.swf
$(call mkhtmlwrap,$(*F))
all:
$(foreach project,$(PROJECTS),$(mkproject)) echo "done" ;
.PHONY: all
.EXPORT_ALL_VARIABLES:
.SILENT: all

Submodule PracticingFlixel/Mode deleted from 1abd28d533

View File

@@ -1,6 +0,0 @@
title=Flixel Bloom
bgcolor=#000
application=flixel-bloom-app
swf=FlxBloom
width=800
height=600

View File

@@ -1,6 +0,0 @@
title=Flixel Blur
bgcolor=#000
application=flixel-blur-app
swf=FlxBlur
width=800
height=600

View File

@@ -1,6 +0,0 @@
title=Flixel Collisions
bgcolor=#000
application=flixel-collisions-app
swf=FlxCollisions
width=800
height=600

View File

@@ -1,6 +0,0 @@
title=Flixel Invaders
bgcolor=#000
application=flixel-invaders-app
swf=FlxInvaders
width=640
height=480

View File

@@ -1,6 +0,0 @@
title=Flixel Teroids
bgcolor=#000
application=flixel-teroids-app
swf=FlxTeroids
width=800
height=600

View File

@@ -1,6 +0,0 @@
title=Hello World
bgcolor=#000
application=hello-world-app
swf=HelloWorld
width=800
height=600

View File

@@ -1,6 +0,0 @@
title=Mode
bgcolor=#000
application=mode-app
swf=Mode
width=800
height=600

View File

@@ -1,116 +0,0 @@
#!/usr/bin/env python
from __future__ import print_function
import sys
from string import Template
import argparse
OPTIONS = (
(('-P', '--properties-file'),
dict(help='specify a properties file for use as variables '
'in html wrapper')),
)
def main(sysargs=sys.argv[:]):
parser = get_option_parser()
opts = parser.parse_args(sysargs[1:])
tmpl_vars = dict(VARS)
if opts.properties_file:
_update_from_properties(tmpl_vars, opts.properties_file)
print(TEMPLATE.substitute(**tmpl_vars))
return 0
def get_option_parser():
parser = argparse.ArgumentParser()
for args, kwargs in OPTIONS:
parser.add_argument(*args, **kwargs)
return parser
def _update_from_properties(tmpl_vars, properties_file):
defines = _get_defines_from_properties_file(properties_file)
tmpl_vars.update(defines)
def _get_defines_from_properties_file(properties_file):
ret = {}
with open(properties_file) as opened:
for line in opened:
line = line.strip()
if line.startswith('#'):
continue
if '=' in line:
key, value = line.split('=', 1)
ret[key] = value
return ret
VARS = (
('title', ''),
('bgcolor', ''),
('application', ''),
('swf', ''),
('width', ''),
('height', ''),
)
TEMPLATE = Template("""
<!DOCTYPE html>
<html>
<head>
<title>${title}</title>
<style type="text/css" media="screen">
/*<![CDATA[*/
html, body { height:100%; }
body {
margin:0;
padding:0;
overflow:auto;
text-align:center;
background-color: ${bgcolor};
}
#flashContent {
display:none;
}
*/]]>*/
</style>
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width="${width}" height="${height}" id="${application}">
<param name="movie" value="${swf}.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="${bgcolor}" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="${swf}.swf"
width="${width}" height="${height}">
<param name="quality" value="high" />
<param name="bgcolor" value="${bgcolor}" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<!--<![endif]-->
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</body>
</html>
""")
if __name__ == '__main__':
sys.exit(main())
# vim:filetype=python

Submodule PracticingFlixel/flixel deleted from c2cf2b7054

Some files were not shown because too many files have changed in this diff Show More