Fix use of "export" to work with traditional shells.
[pspp] / tests / expressions / randist.sh
index 0f303879736dcacf432e0a892992e5a40fcf124d..9c1ed925c688e013c1ccd2e22aa1a385f8eb7c88 100755 (executable)
@@ -9,13 +9,17 @@ here=`pwd`;
 # ensure that top_srcdir is absolute
 cd $top_srcdir; top_srcdir=`pwd`
 
-export STAT_CONFIG_PATH=$top_srcdir/config
+STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH
 
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+        echo NOT removing directory $TEMPDIR
+       return ; 
+     fi
      rm -rf $TEMPDIR
-     :
 }