[go: up one dir, main page]

File: build.sh

package info (click to toggle)
shrinksafe 1.7.2-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 352 kB
  • ctags: 149
  • sloc: java: 1,411; sh: 19; makefile: 4
file content (23 lines) | stat: -rwxr-xr-x 571 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
RHINO=../js.jar
TEST=$1

# create shrinksafe.jar from src/
rm -rf bin
mkdir bin
cd src
javac -classpath $RHINO:. -d ../bin org/dojotoolkit/shrinksafe/Main.java
mkdir ../bin/org/dojotoolkit/shrinksafe/resources
cp org/dojotoolkit/shrinksafe/resources/Messages.properties ../bin/org/dojotoolkit/shrinksafe/resources/Messages.properties
cd ../bin
jar cfm ../shrinksafe.jar ../src/manifest *
cd ..
rm -rf bin

# call build.sh test to run the unit tests immediately
if [ "$TEST" == "test" ]; then
	echo "Running tests."
	cd tests
	./runner.sh  #| grep errors -1
fi