Permalink
Browse files

Updated year and version number

  • Loading branch information...
1 parent 8bb2273 commit acc393e37995409ca86db2527c4c1799420e31e9 @koggdal committed Feb 21, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 LICENSE-MIT
  2. +1 −1 README.md
  3. +2 −2 build/build.js
View
@@ -1,4 +1,4 @@
-Copyright (c) 2011 Johannes Koggdal
+Copyright (c) 2011-2012 Johannes Koggdal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
+THE SOFTWARE.
View
@@ -15,7 +15,7 @@ Then navigate to the build directory by running:
Finally run the build command:
`node build.js`
-You will now have two source files in the build directory: ocanvas-x.x.js and ocanvas-x.x.min.js
+You will now have two source files in the build directory: ocanvas-x.x.x.js and ocanvas-x.x.x.min.js
## Documentation
All the documentation can be found at the website, <http://ocanvas.org/>
View
@@ -24,7 +24,7 @@ version = /^version = (.*)$/m.exec(config)[1],
source_dir = /^source_dir = (.*)$/m.exec(config)[1],
output_full = /^output_full = (.*)$/m.exec(config)[1].replace("{version}", version),
output_min = /^output_min = (.*)$/m.exec(config)[1].replace("{version}", version),
-head = /head\s-----\s([\s\S]*?)-----\s/g.exec(config)[1].replace("{version}", version).replace("{year}", (new Date()).getFullYear()),
+head = /head\s-----\s([\s\S]*?)-----\s/g.exec(config)[1].replace("{version}", version).replace("{year}", "2011-" + (new Date()).getFullYear()),
filenames = /files\s-----\s([\s\S]*?)\s-----/g.exec(config)[1].split(/\s/);
foot = /foot\s-----\s([\s\S]*?)\s-----/g.exec(config)[1].split(/\s/);
numFiles = filenames.length;
@@ -89,4 +89,4 @@ minified_source = uglify.processor.gen_code(ast);
// Save minified source file
fs.writeFile(output_min, head + minified_source, "UTF-8");
-console.log("Minified source file saved as: " + output_min);
+console.log("Minified source file saved as: " + output_min);

0 comments on commit acc393e

Please sign in to comment.