2013-05-30 18:47:47 -04:00
|
|
|
#!/bin/bash
|
2011-06-25 16:34:59 -04:00
|
|
|
|
2013-01-28 21:03:27 -05:00
|
|
|
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
|
|
|
# http://paperjs.org/
|
2011-06-24 15:12:48 -04:00
|
|
|
#
|
2014-01-03 19:47:16 -05:00
|
|
|
# Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey
|
|
|
|
# http://scratchdisk.com/ & http://jonathanpuckey.com/
|
2011-06-24 15:12:48 -04:00
|
|
|
#
|
2011-07-01 06:17:45 -04:00
|
|
|
# Distributed under the MIT license. See LICENSE file for details.
|
|
|
|
#
|
|
|
|
# All rights reserved.
|
2011-06-24 15:12:48 -04:00
|
|
|
|
|
|
|
if [ -f paperjs.zip ]
|
|
|
|
then
|
|
|
|
rm paperjs.zip
|
|
|
|
fi
|
|
|
|
# Create a temporary folder to copy all files in for zipping
|
|
|
|
mkdir zip
|
|
|
|
cd zip
|
|
|
|
BASE=../..
|
|
|
|
# Copy license over
|
|
|
|
cp $BASE/LICENSE.txt .
|
|
|
|
# Make library folder and copy paper.js there
|
2013-06-26 22:42:04 -04:00
|
|
|
mkdir dist
|
2013-06-27 07:21:06 -04:00
|
|
|
# Copy all versions
|
2013-06-26 22:42:04 -04:00
|
|
|
cp $BASE/dist/paper-full.js dist
|
|
|
|
cp $BASE/dist/paper-full.min.js dist
|
|
|
|
cp $BASE/dist/paper-core.js dist
|
|
|
|
cp $BASE/dist/paper-core.min.js dist
|
2011-06-24 15:12:48 -04:00
|
|
|
# Copy examples over
|
|
|
|
cp -r $BASE/examples .
|
|
|
|
# Copy docs over
|
|
|
|
cp -r $BASE/dist/docs .
|
|
|
|
# Zip the whole thing
|
|
|
|
zip -9 -r $BASE/dist/paperjs.zip * LICENSE.txt -x "*/.DS_Store"
|
|
|
|
cd ..
|
|
|
|
# Remove the temporary folder again
|
|
|
|
rm -fr zip
|