From f3de077b6c5d910a13aca69aab31c518b4632cec Mon Sep 17 00:00:00 2001 From: Martin Opstad Reistadbakk Date: Tue, 23 Oct 2012 23:39:29 +0200 Subject: [PATCH] updated and working generation --- .gitignore | 3 ++- build.py | 8 ++++---- index.html | 7 +++---- src/javascripts/trumpet.js | 2 +- src/stylesheets/trumpet.css | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index e3b2e50..5b24a2c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.pyc -*.DS_Store \ No newline at end of file +*.DS_Store +public/javascripts/trumpet.js \ No newline at end of file diff --git a/build.py b/build.py index 547f9ef..6ecbeb7 100755 --- a/build.py +++ b/build.py @@ -1,12 +1,12 @@ #!/usr/bin/python style = "" for line in open("src/stylesheets/trumpet.css"): - style += line.replace("\n"," ").replace("\t"," ").replace(" "," "). + style += line.replace("\n"," ").replace("\t"," ").replace(" "," ") - - javascript = "" for line in open("src/javascripts/trumpet.js"): javascript += line.replace("STYLEHERE",style) -print javascript \ No newline at end of file + +f = open("public/javascripts/trumpet.js",'w') +f.write(javascript) \ No newline at end of file diff --git a/index.html b/index.html index 307f253..51857e0 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,5 @@ -