forked from jashkenas/coffeescript
-
Notifications
You must be signed in to change notification settings - Fork 6
/
test-closure.sh
executable file
·27 lines (21 loc) · 883 Bytes
/
test-closure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Remember to run bin/cake build first if you have updated the CoffeeScript source!
# In order to iterate on this, it is probably best to run the following:
#
# git checkout lib/*.js && bin/cake build && bin/cake build:parser && ./test-closure.sh
#
# This way, if there is an error during the build, `git checkout` is used to
# "reset" the build so that it is possible to rebuild.
#
# Also, it appears to be important to regenerate grammar.js before building the
# parser. (Writing the build tools in the language you are building can get
# confusing sometimes.)
set -e
mkdir -p build/closure/test
bin/coffee --google -b -o build/closure/test -c closure/test/*.coffee
echo "// === abstractperson.js ==="
cat build/closure/test/abstractperson.js
echo "// === person.js ==="
cat build/closure/test/person.js
echo "// === adult.js ==="
cat build/closure/test/adult.js