Skip to content

Commit d8d7f57

Browse files
committed
Fix dangling references to dotc and dotr executables
Update references from `dotc` and `dotr` to `scalac` and `scala`, respectively, as they were renamed by scala#9917.
1 parent 97da3cb commit d8d7f57

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

compiler/src/dotty/tools/dotc/config/CompilerCommand.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import scala.collection.JavaConverters._
1212
object CompilerCommand {
1313

1414
/** The name of the command */
15-
def cmdName: String = "dotc"
15+
def cmdName: String = "scalac"
1616

1717
private def explainAdvanced = """
1818
|-- Notes on option parsing --
@@ -137,7 +137,7 @@ object CompilerCommand {
137137

138138
if (summary.errors.nonEmpty) {
139139
summary.errors foreach (report.error(_))
140-
report.echo(" dotc -help gives more information")
140+
report.echo(" scalac -help gives more information")
141141
Nil
142142
}
143143
else if (settings.version.value) {

compiler/src/dotty/tools/dotc/config/Properties.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,6 @@ trait PropertiesTrait {
129129
def jdkHome: String = envOrElse("JDK_HOME", envOrElse("JAVA_HOME", javaHome))
130130

131131
def versionMsg: String = "Scala %s %s -- %s".format(propCategory, versionString, copyrightString)
132-
def scalaCmd: String = if (isWin) "dotr.bat" else "dotr"
133-
def scalacCmd: String = if (isWin) "dotc.bat" else "dotc"
132+
def scalaCmd: String = if (isWin) "scala.bat" else "scala"
133+
def scalacCmd: String = if (isWin) "scalac.bat" else "scalac"
134134
}

compiler/src/dotty/tools/dotc/core/Phases.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ object Phases {
263263
* instance, it is possible to print trees after a given phase using:
264264
*
265265
* ```bash
266-
* $ ./bin/dotc -Xprint:<phaseNameHere> sourceFile.scala
266+
* $ ./bin/scalac -Xprint:<phaseNameHere> sourceFile.scala
267267
* ```
268268
*/
269269
def phaseName: String

compiler/test/debug/Gen

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ SOURCE=$DIR/Gen.scala
66
CLASS=./Gen.class
77

88
if [ ! -e $CLASS ] || [ $SOURCE -nt $CLASS ]; then
9-
./bin/dotc $DIR/Gen.scala
9+
./bin/scalac $DIR/Gen.scala
1010
fi
1111

12-
./bin/dotr Gen $@
12+
./bin/scala Gen $@
1313

compiler/test/debug/test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ DIR="$( cd "$( dirname "$0" )" && pwd )"
44

55
echo "start debug test..."
66
for file in tests/debug/*.scala; do
7-
./bin/dotc $file || exit 1
8-
./bin/dotr -d Test > /dev/null &
7+
./bin/scalac $file || exit 1
8+
./bin/scala -d Test > /dev/null &
99
$DIR/Gen $file > robot
1010
expect robot 2>&1 > /dev/null
1111

compiler/test/dotty/tools/dotc/FromTastyTests.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class FromTastyTests {
1616
@Test def posTestFromTasty: Unit = {
1717
// Can be reproduced with
1818
// > sbt
19-
// > dotc -Ythrough-tasty -Ycheck:all <source>
19+
// > scalac -Ythrough-tasty -Ycheck:all <source>
2020

2121
implicit val testGroup: TestGroup = TestGroup("posTestFromTasty")
2222
compileTastyInDir(s"tests${JFile.separator}pos", defaultOptions,
@@ -27,8 +27,8 @@ class FromTastyTests {
2727
@Test def runTestFromTasty: Unit = {
2828
// Can be reproduced with
2929
// > sbt
30-
// > dotc -Ythrough-tasty -Ycheck:all <source>
31-
// > dotr Test
30+
// > scalac -Ythrough-tasty -Ycheck:all <source>
31+
// > scala Test
3232

3333
implicit val testGroup: TestGroup = TestGroup("runTestFromTasty")
3434
compileTastyInDir(s"tests${JFile.separator}run", defaultOptions,

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
104104
|the test can be reproduced by running from SBT (prefix it with ./bin/ if you
105105
|want to run from the command line):""".stripMargin
106106
)
107-
sb.append("\n\ndotc ")
107+
sb.append("\n\nscalac ")
108108
flags.all.foreach { arg =>
109109
if (lineLen > maxLen) {
110110
sb.append(delimiter)

0 commit comments

Comments
 (0)