Skip to content

Commit

Permalink
Merge pull request #16 from stephenmathieson/update-year
Browse files Browse the repository at this point in the history
Updating 'year' in Readme.md to the current year
  • Loading branch information
tj committed Jun 10, 2013
2 parents d3570c7 + 24f15e4 commit 4fb4ec3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions bin/ngen
Expand Up @@ -67,7 +67,9 @@ function Template(name) {
this.path = templates + '/' + name;
this.contentPath = this.path + '/content';
this.mod = require(this.path);
this.values = {};
this.values = {
year: new Date().getFullYear()
};
this.directories = {};
}

Expand Down Expand Up @@ -121,7 +123,7 @@ Template.prototype.init = function(dest){
Template.prototype.__defineGetter__('files', function(){
var self = this
, files = [];

(function next(dir) {
fs.readdirSync(dir).forEach(function(file){
files.push(file = dir + '/' + file);
Expand Down
2 changes: 1 addition & 1 deletion templates/default/content/Readme.md
Expand Up @@ -7,7 +7,7 @@

(The MIT License)

Copyright (c) 2012 {{name}} <{{email}}>
Copyright (c) {{year}} {{name}} <{{email}}>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion templates/git/content/Readme.md
Expand Up @@ -7,7 +7,7 @@

(The MIT License)

Copyright (c) 2011 {{name}} <{{email}}>
Copyright (c) {{year}} {{name}} <{{email}}>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down

0 comments on commit 4fb4ec3

Please sign in to comment.