diff options
Diffstat (limited to 'genhdlist_cz2')
-rw-r--r-- | genhdlist_cz2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/genhdlist_cz2 b/genhdlist_cz2 index 2a12858..513358c 100644 --- a/genhdlist_cz2 +++ b/genhdlist_cz2 @@ -26,7 +26,8 @@ $depslist = "$pwd/$depslist" if $depslist !~ m|^/|; $hdlist = "$pwd/$hdlist" if $hdlist !~ m|^/|; $dir = "$pwd/$dir" if $dir !~ m|^/|; -$work_dir = "/tmp/.build_hdlist"; +$tmpdir = $ENV{TMPDIR} || "/tmp"; +$work_dir = "$tmpdir/.build_hdlist"; -e $work_dir && !-d $work_dir and unlink($work_dir) || die "cannot use $work_dir as a working directory"; |