Develop and Download Open Source Software

Browse Subversion Repository

Contents of /build.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (show annotations) (download) (as text)
Thu May 8 01:29:52 2008 UTC (15 years, 11 months ago) by tdott
File MIME type: text/x-sh
File size: 514 byte(s)


1 #!/bin/sh
2 # Antを実行してビルドを行います。
3
4 function usage() {
5 echo '使い方: '$(basename $0)' モジュール名 [実行するAntターゲット名...]'
6 echo '例: '$(basename $0)' larch-core swc doc'
7 exit
8 }
9
10 if [ $# -eq 0 ]
11 then
12 usage
13 fi
14
15 MODULE=$1
16 shift 1
17
18 if [ ! -d $MODULE ]
19 then
20 echo $MODULE'が見つかりません'
21 usage
22 fi
23
24 cd $(dirname $0)
25
26 # ビルドを実行
27 echo $MODULE' をビルドしています...'
28 if [ $# -eq 0 ]
29 then
30 ant -q -Dmodule=$MODULE clean swc src test doc
31 else
32 ant -q -Dmodule=$MODULE $*
33 fi

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26