mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
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:
parent
4751fc6dc8
commit
00ad5046de
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue