Merge branch 'resize_label' of https://github.com/beda42/dygraphs into pull146
authorDan Vanderkam <dan@dygraphs.com>
Fri, 11 May 2012 18:19:29 +0000 (14:19 -0400)
committerDan Vanderkam <dan@dygraphs.com>
Fri, 11 May 2012 18:19:29 +0000 (14:19 -0400)
dygraph-range-selector.js
generate-combined.sh
plugins/legend.js
push-to-web.sh

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 d63f080..f5f4711 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() {
 
 /*
index 422f0fd..4bf1b89 100755 (executable)
@@ -9,6 +9,7 @@ fi
 
 set -x
 site=$1
+
 # Produce dygraph-combined.js.
 ./generate-combined.sh
 
@@ -18,6 +19,10 @@ chmod a+r docs/options.html
 if [ -s docs/options.html ] ; then
   ./generate-jsdoc.sh
 
+  # Make sure everything will be readable on the web.
+  # This is like "chmod -R a+rX", but excludes the .git directory.
+  find . -path ./.git -prune -o -print | xargs chmod a+rX
+
   # Copy everything to the site.
   rsync -avzr gallery common tests jsdoc experimental plugins $site \
   && \