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 \
99 echo "Created $O_JAR." &&
101 java org.spearce.jgit.pgm.build.JarLinkUtil \
102 -include org.spearce.jgit
/src \
103 -file META-INF
/MANIFEST.MF
=$T_MF \
106 echo "Created $O_SRC." &&
108 M_TB
=META-INF
/services
/org.spearce.jgit.pgm.TextBuiltin
&&
109 sed s
/@@use_self@@
/1/ jgit.sh
>$O_CLI+ &&
110 java org.spearce.jgit.pgm.build.JarLinkUtil \
111 `for p in $JARS ; do printf %s " -include $p" ;done` \
112 `for p in $PLUGINS; do printf %s " -include $p/bin2";done` \
113 -file $M_TB=org.spearce.jgit.pgm
/src
/$M_TB \
114 -file META-INF
/MANIFEST.MF
=$T_MF \
118 echo "Created $O_CLI." || die
"Build failed."