Add a reference to the license to the build

This commit is contained in:
Bart van den Eijnden
2014-08-22 10:10:21 +02:00
parent 3e38b1d88a
commit a5dd13c5f1

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';
}