12 org.spearce.jgit/lib/jsch-0.1.37.jar
13 org.spearce.jgit.pgm/lib/args4j-2.0.9.jar
20 if [ "$OSTYPE" = "cygwin" ]
25 if [ "$MSYSTEM" = "MINGW" ]
30 if [ -n "$JAVA_HOME" ]
32 PATH
=${JAVA_HOME}/bin${PSEP}${PATH}
36 rm -f $T $O_CLI+ $O_JAR+ $O_SRC+ $T_MF
45 rm -f $O_CLI $O_JAR $O_SRC
51 rm -f $O_CLI $O_JAR $O_SRC
53 VN
=`git describe --abbrev=4 HEAD 2>/dev/null`
54 git update-index
-q --refresh
55 if [ -n "`git diff-index --name-only HEAD --`" ]
59 VN
=`echo "$VN" | sed -e s/-/./g`
64 if [ -z "$CLASSPATH" ]
68 CLASSPATH
="${CLASSPATH}${PSEP}$R/$j"
75 echo "Entering $p ..."
78 find .
-name \
*.java
-type f |
84 -d ..
/bin2
) || die
"Building $p failed."
85 CLASSPATH
="${CLASSPATH}${PSEP}$R/$p/bin2"
90 echo Manifest-Version
: 1.0 >$T_MF &&
91 echo Implementation-Title
: jgit
>>$T_MF &&
92 echo Implementation-Version
: $VN >>$T_MF &&
94 java org.spearce.jgit.pgm.build.JarLinkUtil \
95 -include org.spearce.jgit
/bin2 \
96 -file META-INF
/MANIFEST.MF
=$T_MF \
100 echo "Created $O_JAR." &&
102 java org.spearce.jgit.pgm.build.JarLinkUtil \
103 -include org.spearce.jgit
/src \
104 -file META-INF
/MANIFEST.MF
=$T_MF \
108 echo "Created $O_SRC." &&
110 M_TB
=META-INF
/services
/org.spearce.jgit.pgm.TextBuiltin
&&
111 sed s
/@@use_self@@
/1/ jgit.sh
>$O_CLI+ &&
112 java org.spearce.jgit.pgm.build.JarLinkUtil \
113 `for p in $JARS ; do printf %s " -include $p" ;done` \
114 `for p in $PLUGINS; do printf %s " -include $p/bin2";done` \
115 -file $M_TB=org.spearce.jgit.pgm
/src
/$M_TB \
116 -file META-INF
/MANIFEST.MF
=$T_MF \
120 echo "Created $O_CLI." || die
"Build failed."