Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 16840 invoked from network); 27 Mar 2008 22:44:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Mar 2008 22:44:19 -0000 Received: (qmail 72590 invoked by uid 500); 27 Mar 2008 22:44:17 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 72572 invoked by uid 500); 27 Mar 2008 22:44:17 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 72563 invoked by uid 99); 27 Mar 2008 22:44:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2008 15:44:17 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2008 22:43:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D66991A9832; Thu, 27 Mar 2008 15:43:45 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r642015 - in /stdcxx/trunk: bin/xbuildgen etc/config/makefile.rules etc/config/run_locale_utils.sh Date: Thu, 27 Mar 2008 22:43:44 -0000 To: commits@stdcxx.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080327224345.D66991A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Thu Mar 27 15:43:35 2008 New Revision: 642015 URL: http://svn.apache.org/viewvc?rev=642015&view=rev Log: 2008-03-27 Scott Zhong STDCXX-401 * etc/config/makefile.rules (run): Used the POSIX TMPDIR environment variable instead of TMP. * etc/config/run_locale_utils.sh: Same. * bin/xbuildgen: Same. Modified: stdcxx/trunk/bin/xbuildgen stdcxx/trunk/etc/config/makefile.rules stdcxx/trunk/etc/config/run_locale_utils.sh Modified: stdcxx/trunk/bin/xbuildgen URL: http://svn.apache.org/viewvc/stdcxx/trunk/bin/xbuildgen?rev=642015&r1=642014&r2=642015&view=diff ============================================================================== --- stdcxx/trunk/bin/xbuildgen (original) +++ stdcxx/trunk/bin/xbuildgen Thu Mar 27 15:43:35 2008 @@ -607,8 +607,8 @@ gzlogs=$* -# set the TMP variable to /tmp if not set -[ -z $TMP ] && TMP=/tmp +# set the TMPDIR variable to /tmp if not set +[ -z $TMPDIR ] && TMPDIR=/tmp ###################################################################### @@ -886,7 +886,7 @@ fi # the name of a temporary file containing the build timings -timings_file=$TMP/.stdcxx-timings.$$ +timings_file=$TMPDIR/.stdcxx-timings.$$ # remove the temporary file rm -f timings_file @@ -915,7 +915,7 @@ fi # set temporary variables (valid only within the loop) - txtlog=$TMP/`basename $l .gz.txt`.txt.$$ + txtlog=$TMPDIR/`basename $l .gz.txt`.txt.$$ # append the name of the log to the list textlogs="$textlogs $txtlog" Modified: stdcxx/trunk/etc/config/makefile.rules URL: http://svn.apache.org/viewvc/stdcxx/trunk/etc/config/makefile.rules?rev=642015&r1=642014&r2=642015&view=diff ============================================================================== --- stdcxx/trunk/etc/config/makefile.rules (original) +++ stdcxx/trunk/etc/config/makefile.rules Thu Mar 27 15:43:35 2008 @@ -154,9 +154,9 @@ # a report (set to ALL to run all executables) # hung or runaway processes are killed after a customizable timeout period # -# to avoid filling up disk space with junk files left behind by bad programs -# creates and sets TMP to a temporary directory before running the programs -# which is then removed when done +# to avoid filling up disk space with files left behind by bad programs +# creates and sets the POSIX TMPDIR environment variable to a temporary +# directory before running the programs which is then removed when done # # PlumHall specific: # for all "top level" tests that failed to build, find and build all @@ -167,10 +167,10 @@ @(LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(LIBDIR); \ PATH=$$PATH:.; \ TOPDIR=$(TOPDIR); \ - TMP=$${TMP:-/tmp}/stdcxx-run-$$$$; \ - export LD_LIBRARY_PATH PATH TMP TOPDIR TZ; \ - trap "rm -rf $$TMP" HUP INT QUIT TERM EXIT; \ - mkdir -p $$TMP; \ + TMPDIR=$${TMPDIR:-/tmp}/stdcxx-run-$$$$; \ + export LD_LIBRARY_PATH PATH TMPDIR TOPDIR TZ; \ + trap "rm -rf $$TMPDIR" HUP INT QUIT TERM EXIT; \ + mkdir -p $$TMPDIR; \ ./run $(RUNFLAGS) $(RUNTARGET); \ exit 0) @@ -180,10 +180,10 @@ @(LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(LIBDIR); \ PATH=$$PATH:$(LIBDIR):$(BINDIR):.; \ TOPDIR=$(TOPDIR); \ - TMP=$${TMP:-/tmp}/stdcxx-run-$$$$; \ - export LD_LIBRARY_PATH PATH TMP TOPDIR TZ; \ - trap "rm -rf $$TMP" HUP INT QUIT TERM EXIT; \ - mkdir -p $$TMP; \ + TMPDIR=$${TMPDIR:-/tmp}/stdcxx-run-$$$$; \ + export LD_LIBRARY_PATH PATH TMPDIR TOPDIR TZ; \ + trap "rm -rf $$TMPDIR" HUP INT QUIT TERM EXIT; \ + mkdir -p $$TMPDIR; \ ./run $(RUNFLAGS) $(RUNTARGET); \ exit 0) Modified: stdcxx/trunk/etc/config/run_locale_utils.sh URL: http://svn.apache.org/viewvc/stdcxx/trunk/etc/config/run_locale_utils.sh?rev=642015&r1=642014&r2=642015&view=diff ============================================================================== --- stdcxx/trunk/etc/config/run_locale_utils.sh (original) +++ stdcxx/trunk/etc/config/run_locale_utils.sh Thu Mar 27 15:43:35 2008 @@ -20,7 +20,7 @@ # implied. See the License for the specific language governing # permissions and limitations under the License. # -# Copyright 1999-2007 Rogue Wave Software, Inc. +# Copyright 1999-2008 Rogue Wave Software, Inc. # ############################################################################## # @@ -557,12 +557,12 @@ done ## set temporary (working) directory -if [ -z "$TMP" ]; then - TMP="/tmp"; - export TMP; +if [ -z "$TMPDIR" ]; then + TMPDIR="/tmp" + export TMPDIR fi -tmpdir=$TMP/${locale_db:-unnamed-locale}.$$ +tmpdir=$TMPDIR/${locale_db:-unnamed-locale}.$$ ## Actual test if [ "$chk_sanity" = "yes" ]; then