add @license tags in various places, including dygraph-combined.js
authorDan Vanderkam <danvk@google.com>
Tue, 24 Apr 2012 21:05:12 +0000 (17:05 -0400)
committerDan Vanderkam <danvk@google.com>
Tue, 24 Apr 2012 21:05:12 +0000 (17:05 -0400)
dygraph-range-selector.js
generate-combined.sh
plugins/legend.js

index fd50bd0..9a28aa9 100644 (file)
@@ -1,5 +1,8 @@
-// Copyright 2011 Paul Felix (paul.eric.felix@gmail.com)
-// All Rights Reserved.
+/*
+ * @license
+ * Copyright 2011 Paul Felix (paul.eric.felix@gmail.com)
+ * MIT-licensed (http://opensource.org/licenses/MIT)
+ */
 
 /**
  * @fileoverview This file contains the DygraphRangeSelector class used to provide
index 038aff8..304b1cf 100755 (executable)
@@ -25,9 +25,8 @@ plugins/install.js \
 java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
 > /tmp/dygraph-packed.js
 
-# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
-
-cat \
-/tmp/dygraph-packed.js \
-> dygraph-combined.js
+(
+  echo '/*! dygraphs v1.2 dygraphs.com | dygraphs.com/license */'
+  cat /tmp/dygraph-packed.js
+) > dygraph-combined.js
 chmod a+r dygraph-combined.js
index df2ce1e..68a6762 100644 (file)
@@ -1,3 +1,9 @@
+/**
+ * @license
+ * Copyright 2012 Dan Vanderkam (danvdk@gmail.com)
+ * MIT-licensed (http://opensource.org/licenses/MIT)
+ */
+
 Dygraph.Plugins.Legend = (function() {
 
 /*