autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

43-as-shell-sanitize.patch


From: DEMAILLE Akim
Subject: 43-as-shell-sanitize.patch
Date: Mon, 20 Nov 2000 10:18:27 +0100

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * tests/atconfig.in: Move code into...
        * tests/atgeneral.m4 (AT_INIT): here.
        Use AS_SHELL_SANITIZE.
        
Index: tests/atconfig.in
--- tests/atconfig.in Sat, 18 Nov 2000 17:16:33 +0100 akim (ace/b/18_atconfig.i 
1.6 644)
+++ tests/atconfig.in Sun, 19 Nov 2000 15:46:40 +0100 akim (ace/b/18_atconfig.i 
1.6 644)
@@ -1,6 +1,6 @@
 # @configure_input@                                    -*- shell-script -*-
 # Configurable variable values for building test suites.
-# Copyright (C) 2000 Free Software Foundation, Inc.
+# Copyright 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -52,27 +52,10 @@
 address@hidden@
 address@hidden@
 at_c='@ECHO_C@'
-test -f atlocal && . ./atlocal
-
-# LC_MESSAGES is always shadowed by LC_ALL.  Here are the only cases:
-# - GNU:       LANGUAGE -> LC_ALL -> LC_MESSAGES -> LANG
-# - POSIX:     LC_ALL -> LC_MESSAGES -> LANG
-# - XPG4:      LC_ALL -> LANG
-# - SysV/XPG2: LANG
-export LANGUAGE; LANGUAGE=C
-export LANG; LANG=C
-export LC_ALL; LC_ALL=C
 
 address@hidden@
 address@hidden@
-# Use absolute file notations, as the test might change directories.
-at_srcdir=`cd @srcdir@ && pwd`
-at_top_srcdir=`cd @top_srcdir@ && pwd`
-if test -n "@AUTOTEST_PATH@"; then
-  export PATH; PATH=`pwd`:`cd @AUTOTEST_PATH@ && pwd`:$PATH
-else
-  export PATH; PATH=`pwd`:$PATH
-fi
address@hidden@
 
 # We need GNU m4.
 address@hidden@
Index: tests/atgeneral.m4
--- tests/atgeneral.m4 Sun, 19 Nov 2000 15:34:26 +0100 akim 
(ace/b/19_atgeneral. 1.33 644)
+++ tests/atgeneral.m4 Sun, 19 Nov 2000 15:49:23 +0100 akim 
(ace/b/19_atgeneral. 1.33 644)
@@ -102,7 +102,22 @@ m4_define([_m4_divert(TEST)],        100
 [AT_DEFINE([AT_ordinal], 0)
 m4_divert_push([DEFAULT])dnl
 #! /bin/sh
+
+AS_SHELL_SANITIZE
+
 . ./atconfig
+# Use absolute file notations, as the test might change directories.
+at_srcdir=`cd "$srcdir" && pwd`
+at_top_srcdir=`cd "$top_srcdir" && pwd`
+
+if test -n "$AUTOTEST_PATH"; then
+  export PATH; PATH=`pwd`:`cd "$AUTOTEST_PATH" && pwd`:$PATH
+else
+  export PATH; PATH=`pwd`:$PATH
+fi
+
+test -f atlocal && . ./atlocal
+
 # -e sets to true
 at_stop_on_error=false;
 # Shall we save and check stdout and stderr?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]