Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory
scala
scala-tooltemplate.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File scala-tooltemplate.patch of Package scala
--- a/src/compiler/templates/tool-unix.tmpl +++ b/src/compiler/templates/tool-unix.tmpl @@ -12,15 +12,14 @@ # additional information regarding copyright ownership. ############################################################################## +. /usr/share/java-utils/java-functions || exit 1 + +set_javacmd || exit 3 +check_java_env || exit 4 +set_jvm_dirs || exit 5 + findScalaHome () { - # see scala/bug#2092 and scala/bug#5792 - local source="${BASH_SOURCE[0]}" - while [ -h "$source" ] ; do - local linked="$(readlink "$source")" - local dir="$( cd -P "$(dirname "$source")" && cd -P "$(dirname "$linked")" && pwd )" - source="$dir/$(basename "$linked")" - done - ( cd -P "$(dirname "$source")/.." && pwd ) + echo "/usr/share/java/scala" } execCommand () { [[ -n $SCALA_RUNNER_DEBUG ]] && echo "" && for arg in "$@@"; do echo "$arg"; done && echo "";
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor