paper.js/build/load.sh

29 lines
692 B
Bash
Raw Normal View History

#!/bin/bash
2011-06-25 16:34:59 -04:00
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
# http://paperjs.org/
#
2014-01-03 19:47:16 -05:00
# Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey
# http://scratchdisk.com/ & http://jonathanpuckey.com/
#
2011-07-01 06:17:45 -04:00
# Distributed under the MIT license. See LICENSE file for details.
#
# All rights reserved.
2013-06-27 17:41:25 -04:00
# This script simply copies src/load.js to dist/paper.js and dist/paper-node.js,
# which loads the library from separate sources through PrePro both in the
# browser and in Node.js.
if [ -f ../dist/paper.js ]
then
rm ../dist/paper.js
fi
2013-06-27 17:41:25 -04:00
if [ -f ../dist/paper-node.js ]
then
rm ../dist/paper-node.js
fi
cp ../src/load.js ../dist/paper.js
2013-06-27 17:41:25 -04:00
cp ../src/load.js ../dist/paper-node.js