X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Futils%2Fstat2resid%2Fstat2resid.prl;h=bf0a26242874134c2b1d7c15b348aeb7d00ac5f4;hb=16f04e14a9c4766abbb17d27d79f70e3a6b68da7;hp=f1b3c9e1c4097aed10d523c4bf2130f19c7f8a6e;hpb=2963660e8ac5d8d31ee6a3edc6701e897424b329;p=ghc-hetmet.git diff --git a/ghc/utils/stat2resid/stat2resid.prl b/ghc/utils/stat2resid/stat2resid.prl index f1b3c9e..bf0a262 100644 --- a/ghc/utils/stat2resid/stat2resid.prl +++ b/ghc/utils/stat2resid/stat2resid.prl @@ -3,20 +3,22 @@ # # Perl script expect bindings for the following variables to be prepended # -# TMPDIR SCRIPT_PATH +# DEFAULT_TMPDIR libdir +# +# without them, not much success :-( # -$debug = 0; +$debug = 0; # first line of script, builds confidence :-) $outsuffix = ".resid.ps"; # change as appropriate if ( $ENV{'TMPDIR'} ) { # where to make tmp file names $tmpfile = $ENV{'TMPDIR'} . "/$$.resid.data"; } else { - $tmpfile ="${TMPDIR}/$$.resid.data"; - $ENV{'TMPDIR'} = ${TMPDIR}; # set the env var as well + $tmpfile ="${DEFAULT_TMPDIR}/$$.resid.data"; + $ENV{'TMPDIR'} = ${DEFAULT_TMPDIR}; # set the env var as well } -@INC = ( ${SCRIPT_PATH} ); +@INC = ( ${libdir} ); require('parse-gcstats.prl') || die "Can't load parse-gcstats.prl!\n"; require('process-gcstats.prl') || die "Can't load process-gcstats.prl!\n";