-
Notifications
You must be signed in to change notification settings - Fork 16
/
build-dist.sh
executable file
·112 lines (74 loc) · 3.27 KB
/
build-dist.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/usr/bin/env bash
cd -P -- "$(dirname -- "$0")"
function error_exit {
echo $1
exit $2
}
mvn || error_exit "Maven build of Cinch failed" 1
mvn javadoc:javadoc || error_exit "Maven build of Cinch javadocs failed" 2
COMMITREF=`git log -n 1 --oneline | awk '{print $1}'`
cd target/dist
JAR=`ls ptoss-cinch-*-SNAPSHOT.jar`
VERSIONED_NAME=`echo $JAR | sed "s/SNAPSHOT/SNAPSHOT-${COMMITREF}/" | sed 's/.jar//'`
mv $JAR ${VERSIONED_NAME}.jar
cp -r ../site/apidocs/ ./
cd ..
cp -r dist ${VERSIONED_NAME}
cat > ${VERSIONED_NAME}/README.txt <<EOF
==========================================================================
Cinch - annotations to make MVC easy
==========================================================================
Cinch makes MVC in Swing easy. Cinch is a Java library used by developers
to simplify writing certain types of GUI code.
When developing Swing applications it's very easy to fall into the trap
of not separating out Models and Controllers. It's all too easy to just
store the state of that boolean in the checkbox itself, or that String
in the JTextField. The design goal behind Cinch was to make it easier
to apply MVC than to not by reducing much of the typical Swing friction
and boilerplate.
Cinch uses Java annotations to reflectively wire up Models, Views,
and Controllers. Property Change Listeners
Project homepage:
http://github.com/palantir/Cinch
Full project documentation:
http://github.com/palantir/Cinch/wiki
Javodoc API Documentation:
http://palantir.github.com/Cinch/apidocs/
Palantir Technologies Open Source homepage:
http://palantir.github.com/
Palantir Technologies:
http://palantir.com/
==========================================================================
Copyright 2011 Palantir Technologies
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==========================================================================
EOF
cat > ${VERSIONED_NAME}/LICENSE.txt <<EOF
==========================================================================
Copyright 2011 Palantir Technologies
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==========================================================================
EOF
zip -r ${VERSIONED_NAME}.zip ${VERSIONED_NAME}
rm -rf ${VERSIONED_NAME}
echo
echo ==========================================================================
echo
echo "Zip file ${VERSIONED_NAME}.zip built"
echo