             match: pkg.version
             replacement: getNextVersion()
           ]
-        files:
-          'uglify-save-license.js': ['uglify-save-license.js']
+        src: [MAIN]
+        dest: MAIN
       year:
         options:
           prefix: '2013 - '


    watch:
      main:
        files: ['uglify-save-license.js']
        tasks: ['build']
    
    release: {}

  semver = require 'semver'
  
  pkg = grunt.file.readJSON 'package.json'
  MAIN = pkg.main
  
  getNextVersion = ->
    currentVer = pkg.version
