           dest: 'dev/enchant.js'
           options:
             banner: """
-                                                                        /**
-                                                                         * <%= pkg.name %> v<%= pkg.version %>
-                                                                         * <%= pkg.homepage %>
-                                                                         *
-                                                                         * Copyright Ubiquitous Entertainment Inc.
-                                                                         * Released under the MIT license.
-                                                                         */\n\n
-                                                                        """
+/**
+* <%= pkg.name %> v<%= pkg.version %>
+* <%= pkg.homepage %>
+*
+* Copyright Ubiquitous Entertainment Inc.
+* Released under the MIT license.
+*/\n\n
+"""
 
       uglify:
         dist:

  grunt.registerTask 'doc', 'Make jsdoc', ()->
    done = this.async
    sh = require('child_process').exec

    sh 'java -jar jsdoc-toolkit/jsrun.jar jsdoc-toolkit/app/run.js ja/enchant.js -t=doc/template -d=doc/core/ja'
    sh 'java -jar jsdoc-toolkit/jsrun.jar jsdoc-toolkit/app/run.js enchant.js -t=doc/template -d=doc/core/en'
    sh 'java -jar jsdoc-toolkit/jsrun.jar jsdoc-toolkit/app/run.js de/enchant.js -t=doc/template -d=doc/core/de'
    sh 'java -jar jsdoc-toolkit/jsrun.jar jsdoc-toolkit/app/run.js ja/enchant.js ja/plugins/*.js -t=doc/template -d=doc/plugins/ja'
    sh 'java -jar jsdoc-toolkit/jsrun.jar jsdoc-toolkit/app/run.js enchant.js plugins/*.js -t=doc/template -d=doc/plugins/en'
    sh 'java -jar jsdoc-toolkit/jsrun.jar jsdoc-toolkit/app/run.js de/enchant.js de/plugins/*.js -t=doc/template -d=doc/plugins/de'

  grunt.registerTask 'build', '', ()->
    fs = require('fs')

    repl_de = make_repl 'de'

    (glob.sync "dev/{plugins\/,}*.js").forEach (source)->
      dist = source.toString().replace(/dev\//, './lang/' + lang + '/')

      fs.writeFileSync dist, (fs.readFileSync source).toString()
      .replace(repl_en, (if lang == 'en' then '$1' else ''))
