From: Dan Vanderkam Date: Wed, 25 Apr 2012 16:07:50 +0000 (-0400) Subject: chmod everything before pushing to web X-Git-Tag: v1.0.0~276 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=c9093b7b3b9cfd2471dff93b8df9cbe1e84a8448;hp=41da6a866e2c62655519ece637543aaa4b764c40;p=dygraphs.git chmod everything before pushing to web --- diff --git a/push-to-web.sh b/push-to-web.sh index 422f0fd..4bf1b89 100755 --- a/push-to-web.sh +++ b/push-to-web.sh @@ -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 \ && \