paper.js/build/build.sh

35 lines
829 B
Bash
Raw Permalink Normal View History

2011-06-25 16:34:59 -04:00
#!/bin/sh
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
# http://paperjs.org/
2011-03-06 19:50:44 -05:00
#
# Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
2011-03-06 19:50:44 -05:00
# http://lehni.org/ & http://jonathanpuckey.com/
#
2011-07-01 06:17:45 -04:00
# Distributed under the MIT license. See LICENSE file for details.
#
# All rights reserved.
2011-03-06 19:50:44 -05:00
# Usage:
# build.sh MODE
#
# MODE:
# commented Preprocessed, still formated and commented
# stripped Preprocessed, formated but without comments
if [ $# -eq 0 ]
then
MODE="stripped"
else
MODE=$1
fi
# Create the dist folder if it does not exist yet.
if [ ! -d ../dist/ ]
then
mkdir ../dist/
fi
2013-02-28 20:41:02 -05:00
./preprocess.sh $MODE ../src/paper.js "-d '{ \"browser\": true }' -i '../src/constants.js'" ../dist/paper.js
#./preprocess.sh $MODE ../src/paper.js "-d '{ \"server\": true }' -i '../src/constants.js'" ../dist/paper-server.js