36 # Assume that the jar file being invoked lists all the necessary langtools |
36 # Assume that the jar file being invoked lists all the necessary langtools |
37 # jar files in its Class-Path manifest entry, so there is no need to search |
37 # jar files in its Class-Path manifest entry, so there is no need to search |
38 # dependent jar files for additional dependencies. |
38 # dependent jar files for additional dependencies. |
39 |
39 |
40 if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then |
40 if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then |
41 cp=`unzip -c $mylib/#PROGRAM#.jar META-INF/MANIFEST.MF | |
41 cp=`unzip -c "$mylib/#PROGRAM#.jar" META-INF/MANIFEST.MF | |
42 grep "Class-Path:" | |
42 grep "Class-Path:" | |
43 sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'` |
43 sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'` |
44 bcp="$mylib/#PROGRAM#.jar":$cp |
44 bcp="$mylib/#PROGRAM#.jar":$cp |
45 fi |
45 fi |
46 |
46 |