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-12 13:55:29 -04:00
|
|
|
#
|
2015-12-27 12:09:25 -05:00
|
|
|
# Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey
|
2014-01-03 19:47:16 -05:00
|
|
|
# http://scratchdisk.com/ & http://jonathanpuckey.com/
|
2011-06-12 13:55:29 -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-12 13:55:29 -04:00
|
|
|
|
2014-04-06 07:44:19 -04:00
|
|
|
# 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
|
2016-01-16 09:37:02 -05:00
|
|
|
# separate sources through Prepro.js both in the browser and in Node.js.
|
2011-06-12 13:55:29 -04:00
|
|
|
|
2014-04-06 07:44:19 -04:00
|
|
|
if [ -f ../dist/paper-full.js ]
|
2013-06-26 22:22:38 -04:00
|
|
|
then
|
2014-08-16 13:24:54 -04:00
|
|
|
rm ../dist/paper-full.js
|
2013-06-26 22:22:38 -04:00
|
|
|
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
|
|
|
|
|
2014-04-06 07:44:19 -04:00
|
|
|
ln -s ../src/load.js ../dist/paper-full.js
|
|
|
|
ln -s ../src/load.js ../dist/paper-node.js
|