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 <[EMAIL PROTECTED]>
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