[m-rev.] for review: Delete erlang from grade scripts.

Peter Wang novalazy at gmail.com
Mon Oct 26 17:09:20 AEDT 2020


scripts/canonical_grade.sh-subr:
scripts/final_grade_options.sh-subr:
scripts/init_grade_options.sh-subr:
scripts/parse_grade_options.sh-subr:
    Stop recognising "erlang" as a target or grade component.
---
 scripts/canonical_grade.sh-subr     |  3 ---
 scripts/final_grade_options.sh-subr | 10 +++++-----
 scripts/init_grade_options.sh-subr  |  2 +-
 scripts/parse_grade_options.sh-subr | 14 --------------
 4 files changed, 6 insertions(+), 23 deletions(-)

diff --git a/scripts/canonical_grade.sh-subr b/scripts/canonical_grade.sh-subr
index 3f6c2e2a6..528489b98 100644
--- a/scripts/canonical_grade.sh-subr
+++ b/scripts/canonical_grade.sh-subr
@@ -39,9 +39,6 @@ case ${highlevel_code},${target} in
             java)
                 GRADE="java"
                 ;;
-            erlang)
-                GRADE="erlang"
-                ;;
             *)
                 progname=`basename $0`
                 echo "${progname}: unknown target: ${target}"
diff --git a/scripts/final_grade_options.sh-subr b/scripts/final_grade_options.sh-subr
index 6677a1a81..86969c732 100644
--- a/scripts/final_grade_options.sh-subr
+++ b/scripts/final_grade_options.sh-subr
@@ -85,7 +85,7 @@ esac
 # The non-C backends do not support single-precision floats, time profiling,
 # memory profiling or deep profiling.
 case ${target} in
-    csharp|java|erlang)
+    csharp|java)
         case ${single_prec_float} in
             true)
                 echo "--single-prec-float and --target $target are not compatible" 1>&2
@@ -120,19 +120,19 @@ case ${decl_debug} in
         ;;
 esac
 
-# --target C#, Java, Erlang implies --high-level-code
+# --target C#, Java implies --high-level-code
 case ${target} in
-    csharp|java|erlang)
+    csharp|java)
         highlevel_code=true
         ;;
 esac
 
-# --target C#, Java, Erlang implies --gc automatic.
+# --target C#, Java implies --gc automatic.
 # NOTE: the .par grade component is meaningless for the non-C backends,
 # so we set it to false if they are being used.  This avoids having to
 # deal with grades like "java.par".
 case ${target} in
-    csharp|java|erlang)
+    csharp|java)
         gc_method=automatic
         thread_safe=false
         ;;
diff --git a/scripts/init_grade_options.sh-subr b/scripts/init_grade_options.sh-subr
index 4012302f9..9783c8884 100644
--- a/scripts/init_grade_options.sh-subr
+++ b/scripts/init_grade_options.sh-subr
@@ -26,7 +26,7 @@
 grade_usage="\
 Grade options:
 	-s <grade>, --grade <grade>
-	--target {c, csharp, java, erlang}
+	--target {c, csharp, java}
 	--asm-labels
 	--gcc-non-local-gotos
 	--gcc-global-registers
diff --git a/scripts/parse_grade_options.sh-subr b/scripts/parse_grade_options.sh-subr
index 9e1793057..4d8b48b3c 100644
--- a/scripts/parse_grade_options.sh-subr
+++ b/scripts/parse_grade_options.sh-subr
@@ -34,9 +34,6 @@
             java|Java)
                 target=java
                 ;;
-            erlang|Erlang)
-                target=erlang
-                ;;
             *)
                 echo "$0: invalid target \`$1'" 1>&2
                 exit 1
@@ -52,10 +49,6 @@
         target=java
         ;;
 
-    --erlang|--Erlang|--erlang-only|--Erlang-only)
-        target=erlang
-        ;;
-
     --high-level-code|-H)
         highlevel_code=true
         ;;
@@ -322,13 +315,6 @@
                     global_regs=false
                     highlevel_code=true
                     ;;
-                erlang)
-                    target=erlang
-                    asm_labels=false
-                    non_local_gotos=false
-                    global_regs=false
-                    highlevel_code=true
-                    ;;
                 hlc)
                     asm_labels=false
                     non_local_gotos=false
-- 
2.28.0



More information about the reviews mailing list