[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH: update example global init file
From: |
Jacob Bachmeyer |
Subject: |
PATCH: update example global init file |
Date: |
Tue, 22 Jan 2019 20:15:01 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0 |
Here's the first small patch from efforts to untangle the DejaGnu
configuration rat's nest:
----
ChangeLog entry:
* doc/dejagnu.texi (Global config file): Change example to use
"switch" instead of the deprecated "case" Tcl command.
----
patch:
----
diff --git a/doc/dejagnu.texi b/doc/dejagnu.texi
index e52a6d1..592797d 100644
--- a/doc/dejagnu.texi
+++ b/doc/dejagnu.texi
@@ -10,7 +10,7 @@
@copying
@c man begin COPYRIGHT
-Copyright @copyright{} 1992-2018 Free Software Foundation, Inc.
+Copyright @copyright{} 1992-2019 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
@@ -1220,8 +1220,8 @@ targets. Below is an example of a global configuration
file for a
Canadian cross environment. A Canadian cross is a toolchain that is
built on, runs on, and targets three different system triplets (for
example, building a Solaris-hosted MIPS R4000 toolchain on a GNU/Linux
-system). All configuration values in the example below are
-site-specific.
+system). This example is based on a configuration once used at
+Cygnus.
@strong{Example global configuration file}
@@ -1232,17 +1232,17 @@ lappend boards_dir
"/nfs/cygint/s1/cygnus/dejagnu/boards"
verbose "Global config file: target_triplet is $target_triplet" 2
global target_list
-case "$target_triplet" in @{
-@ @{ "native" @} @{
+switch -glob -- $target_triplet @{
+@ "native" @{
@ set target_list "unix"
@ @}
-@ @{ "sparc64-*elf" @} @{
+@ "sparc64-*elf" @{
@ set target_list "sparc64-sim"
@ @}
-@ @{ "mips-*elf" @} @{
+@ "mips-*elf" @{
@ set target_list "mips-sim wilma barney"
@ @}
-@ @{ "mips-lsi-elf" @} @{
+@ "mips-lsi-elf" @{
@ set target_list "address@hidden,soft-float,address@hidden"
@ @}
@}
----
-- Jacob
- PATCH: update example global init file,
Jacob Bachmeyer <=