diff --git a/build/zip.sh b/build/zip.sh index 16b22d6e..451e49f8 100755 --- a/build/zip.sh +++ b/build/zip.sh @@ -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