paper.js/build/load.sh

29 lines
745 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/
#
# Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey
2014-01-03 19:47:16 -05:00
# 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.
# This script simply creates symbolic links to src/load.js from
# dist/paper-full.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-full.js ]
then
2014-08-16 13:24:54 -04:00
rm ../dist/paper-full.js
fi
2013-06-27 17:41:25 -04:00
if [ -f ../dist/paper-node.js ]
then
2014-08-16 13:24:54 -04:00
rm ../dist/paper-node.js
2013-06-27 17:41:25 -04:00
fi
ln -s ../src/load.js ../dist/paper-full.js
ln -s ../src/load.js ../dist/paper-node.js