Merge pull request #2151 from bartvde/license

Builds should include license
This commit is contained in:
Bart van den Eijnden
2014-08-25 08:27:23 +02:00

View File

@@ -196,6 +196,8 @@ function build(config, paths, callback) {
function addHeader(compiledSource, callback) {
exec('git describe --tags', function(error, stdout, stderr) {
var header = '// OpenLayers 3. See http://ol3.js.org/\n';
header += '// License: https://raw.githubusercontent.com/openlayers/' +
'ol3/master/LICENSE.md\n';
if (stdout !== '') {
header += '// Version: ' + stdout + '\n';
}