From be8c3dbc974c35fac33c8392b89482c10e4f8650 Mon Sep 17 00:00:00 2001
From: Paul Smith <psmith@gnu.org>
Date: Mon, 23 Feb 2004 06:25:54 +0000
Subject: Numerous fixes: patches for OS/2; core for -f ''; makefile updates.

---
 tests/scripts/functions/origin | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

(limited to 'tests/scripts/functions')

diff --git a/tests/scripts/functions/origin b/tests/scripts/functions/origin
index eab2d78..c45a359 100644
--- a/tests/scripts/functions/origin
+++ b/tests/scripts/functions/origin
@@ -15,13 +15,8 @@ defined per the following list:
 'override'             defined by override in makefile
 'automatic'            Automatic variable\n";
 
-# On WIN32 systems, HOME is meaningless. SystemRoot should be defined
-# though.  With DJGPP, HOME is not guaranteed to be defined.  Use DJDIR
-# instead.
-#
-$homevar = (($port_type eq 'Windows') ? "SystemRoot"
-	    : (($port_type eq 'DOS') ? "DJDIR"
-	       : "HOME"));
+# Set an environment variable
+$ENV{MAKETEST} = 1;
 
 open(MAKEFILE,"> $makefile");
 
@@ -33,7 +28,7 @@ override WHITE := BLACK
 all: auto
 \t\@echo \$(origin undefined)
 \t\@echo \$(origin CC)
-\t\@echo \$(origin $homevar)
+\t\@echo \$(origin MAKETEST)
 \t\@echo \$(origin MAKE)
 \t\@echo \$(origin foo)
 \t\@echo \$(origin CFLAGS)
-- 
cgit v1.2.3