Dist: Rename dist/paper.js dependency in examples to dist/paper-full.js

Instead of copying over paper.js to dist and having the full library there twice.
This commit is contained in:
Jonathan Puckey 2014-03-13 17:59:44 +01:00
parent 4751fc6dc8
commit 00ad5046de

View file

@ -22,8 +22,6 @@ BASE=../..
cp $BASE/LICENSE.txt .
# Make library folder and copy paper.js there
mkdir dist
# Copy main library
cp $BASE/dist/paper-full.js dist/paper.js
# Copy all versions
cp $BASE/dist/paper-full.js dist
cp $BASE/dist/paper-full.min.js dist
@ -31,6 +29,9 @@ cp $BASE/dist/paper-core.js dist
cp $BASE/dist/paper-core.min.js dist
# Copy examples over
cp -r $BASE/examples .
# Replace "dist/paper.js" with "dist/paper-full.js" in examples
# (command taken from http://stackoverflow.com/questions/1583219/awk-sed-how-to-do-a-recursive-find-replace-of-a-string)
find ./examples -type f -name "*.html" -print0 | xargs -0 sed -i '' 's/dist\/paper\.js/dist\/paper-full\.js/g'
# Copy docs over
cp -r $BASE/dist/docs .
# Zip the whole thing