Skip to content

Commit db46ecf

Browse files
committed
Reset
1 parent 0e1b0ca commit db46ecf

File tree

5 files changed

+25
-67
lines changed

5 files changed

+25
-67
lines changed

dist/bin/common

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -131,34 +131,9 @@ fi
131131
#/*--------------------------------------------------
132132
# * The code below is for Dotty
133133
# *-------------------------------------------------*/
134-
# Try to autodetect real location of the script
135-
if [ -z "${PROG_HOME-}" ] ; then
136-
## resolve links - $0 may be a link to PROG_HOME
137-
PRG="$0"
138-
139-
# need this for relative symlinks
140-
while [ -h "$PRG" ] ; do
141-
ls=`ls -ld "$PRG"`
142-
link=`expr "$ls" : '.*-> \(.*\)$'`
143-
if expr "$link" : '/.*' > /dev/null; then
144-
PRG="$link"
145-
else
146-
PRG="`dirname "$PRG"`/$link"
147-
fi
148-
done
149-
150-
saveddir=`pwd`
151-
152-
PROG_HOME=`dirname "$PRG"`/..
153-
154-
# make it fully qualified
155-
PROG_HOME=`cd "$PROG_HOME" && pwd`
156-
157-
cd "$saveddir"
158-
fi
159134

160135
find_lib () {
161-
for lib in $saveddir/dist/target/pack/lib/$1 ; do
136+
for lib in "$PROG_HOME"/lib/$1 ; do
162137
if [[ -f "$lib" ]]; then
163138
if [ -n "$CYGPATHCMD" ]; then
164139
"$CYGPATHCMD" -am "$lib"

dist/bin/scaladoc

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if [ -z "${PROG_HOME-}" ] ; then
2828
cd "$saveddir"
2929
fi
3030

31-
source "$saveddir/dist/bin/common"
31+
source "$PROG_HOME/bin/common"
3232
default_java_opts="-Xmx768m -Xms768m"
3333
withCompiler=true
3434

@@ -66,6 +66,7 @@ classpathArgs () {
6666
CLASS_PATH+="$(find_lib "*flexmark-ext-emoji*")$PSEP"
6767
CLASS_PATH+="$(find_lib "*flexmark-ext-gfm-strikethrough*")$PSEP"
6868
CLASS_PATH+="$(find_lib "*flexmark-ext-gfm-tasklist*")$PSEP"
69+
CLASS_PATH+="$(find_lib "*flexmark-ext-gfm-tables*")$PSEP"
6970
CLASS_PATH+="$(find_lib "*flexmark-ext-wikilink*")$PSEP"
7071
CLASS_PATH+="$(find_lib "*flexmark-ext-yaml-front-matter*")$PSEP"
7172
CLASS_PATH+="$(find_lib "*flexmark-ext-tables*")$PSEP"
@@ -75,6 +76,12 @@ classpathArgs () {
7576
CLASS_PATH+="$(find_lib "*flexmark-util-data*")$PSEP"
7677
CLASS_PATH+="$(find_lib "*flexmark-util-dependency*")$PSEP"
7778
CLASS_PATH+="$(find_lib "*flexmark-util-misc*")$PSEP"
79+
CLASS_PATH+="$(find_lib "*flexmark-util-format*")$PSEP"
80+
CLASS_PATH+="$(find_lib "*flexmark-util-sequence*")$PSEP"
81+
CLASS_PATH+="$(find_lib "*flexmark-util-builder*")$PSEP"
82+
CLASS_PATH+="$(find_lib "*flexmark-util-collection*")$PSEP"
83+
CLASS_PATH+="$(find_lib "*flexmark-util-visitor*")$PSEP"
84+
CLASS_PATH+="$(find_lib "*flexmark-util-html*")$PSEP"
7885
CLASS_PATH+="$(find_lib "*liqp*")$PSEP"
7986
CLASS_PATH+="$(find_lib "*jsoup*")$PSEP"
8087
CLASS_PATH+="$(find_lib "*jackson-dataformat-yaml*")$PSEP"
@@ -129,14 +136,14 @@ echo "----------"
129136
echo $jvm_cp_args | grep tables
130137
echo "----------"
131138

132-
# eval "\"$JAVACMD\"" \
133-
# ${JAVA_OPTS:-$default_java_opts} \
134-
# "${java_args[@]}" \
135-
# "${jvm_cp_args-}" \
136-
# -Dscala.usejavacp=true \
137-
# "dotty.tools.scaladoc.Main" \
138-
# "${scala_args[@]}" \
139-
# "${residual_args[@]}" \
140-
# "${scripting_string-}"
141-
# scala_exit_status=$?
142-
# onExit
139+
eval "\"$JAVACMD\"" \
140+
${JAVA_OPTS:-$default_java_opts} \
141+
"${java_args[@]}" \
142+
"${jvm_cp_args-}" \
143+
-Dscala.usejavacp=true \
144+
"dotty.tools.scaladoc.Main" \
145+
"${scala_args[@]}" \
146+
"${residual_args[@]}" \
147+
"${scripting_string-}"
148+
scala_exit_status=$?
149+
onExit

project/Dependencies.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ object Dependencies {
2323
"com.vladsch.flexmark" % "flexmark-ext-emoji" % flexmarkVersion,
2424
"com.vladsch.flexmark" % "flexmark-ext-gfm-strikethrough" % flexmarkVersion,
2525
"com.vladsch.flexmark" % "flexmark-ext-gfm-tasklist" % flexmarkVersion,
26+
"com.vladsch.flexmark" % "flexmark-ext-gfm-tables" % "0.50.50",
2627
"com.vladsch.flexmark" % "flexmark-ext-wikilink" % flexmarkVersion,
2728
"com.vladsch.flexmark" % "flexmark-ext-tables" % flexmarkVersion,
2829
"com.vladsch.flexmark" % "flexmark-ext-yaml-front-matter" % flexmarkVersion,

project/scripts/cmdScaladocTests

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,5 @@
11
#!/usr/bin/env bash
22

3-
# Try to autodetect real location of the script
4-
if [ -z "${PROG_HOME-}" ] ; then
5-
## resolve links - $0 may be a link to PROG_HOME
6-
PRG="$0"
7-
8-
# need this for relative symlinks
9-
while [ -h "$PRG" ] ; do
10-
ls=`ls -ld "$PRG"`
11-
link=`expr "$ls" : '.*-> \(.*\)$'`
12-
if expr "$link" : '/.*' > /dev/null; then
13-
PRG="$link"
14-
else
15-
PRG="`dirname "$PRG"`/$link"
16-
fi
17-
done
18-
19-
saveddir=`pwd`
20-
21-
PROG_HOME=`dirname "$PRG"`/..
22-
23-
# make it fully qualified
24-
PROG_HOME=`cd "$PROG_HOME" && pwd`
25-
26-
cd "$saveddir"
27-
fi
28-
293
source $(dirname $0)/cmdTestsCommon.inc.sh
304

315
echo "testing scaladoc script"
@@ -47,11 +21,11 @@ SOURCE_LINKS_VERSION="${GITHUB_SHA:-$DOTTY_BOOTSTRAPPED_VERSION}"
4721

4822
"$SBT" "scaladoc/generateTestcasesDocumentation" > "$tmp" 2>&1 || echo "generated testcases project with sbt"
4923

50-
source "$saveddir/dist/target/pack/bin/scaladoc"
24+
echo bonjour
25+
ls "$tmp"
5126

5227
dist/target/pack/bin/scaladoc \
5328
-d "$OUT1" \
54-
$jvm_cp_args \
5529
-project "scaladoc testcases" \
5630
-source-links:out/bootstrap/stdlib-bootstrapped/scala-"${DOTTY_NONBOOTSTRAPPED_VERSION}"/src_managed/main/scala-library-src=github://scala/scala/v"${STDLIB_VERSION}"#src/library \
5731
-source-links:out/bootstrap/stdlib-bootstrapped/scala-"${DOTTY_NONBOOTSTRAPPED_VERSION}"/src_managed/main/dotty-library-src=github://"${SOURCE_LINKS_REPOSITORY}"/"${SOURCE_LINKS_VERSION}"\#library/src \

scaladoc/src/dotty/tools/scaladoc/tasty/comments/MarkdownParser.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import com.vladsch.flexmark.util.sequence.CharSubSequence
1111
import com.vladsch.flexmark.parser.ParserEmulationProfile
1212
import com.vladsch.flexmark.ext.gfm.strikethrough.StrikethroughExtension
1313
import com.vladsch.flexmark.ext.gfm.tasklist.TaskListExtension
14+
import com.vladsch.flexmark.ext.gfm.tables.TablesExtension
1415
import com.vladsch.flexmark.ext.emoji.EmojiExtension
1516
import com.vladsch.flexmark.ext.autolink.AutolinkExtension
1617
import com.vladsch.flexmark.ext.anchorlink.AnchorLinkExtension
@@ -19,7 +20,7 @@ import com.vladsch.flexmark.ext.wikilink.WikiLinkExtension
1920

2021
import scala.jdk.CollectionConverters._
2122
import com.vladsch.flexmark.util.misc.Extension
22-
import com.vladsch.flexmark.ext.tables.TablesExtension
23+
// import com.vladsch.flexmark.ext.tables.TablesExtension
2324
import com.vladsch.flexmark.util.data.MutableDataSet
2425
import com.vladsch.flexmark.util.data.DataHolder
2526

0 commit comments

Comments
 (0)