unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Honor `$TMPDIR' in `guile-snarf'
@ 2008-02-12 14:18 Ludovic Courtès
  2008-02-12 20:53 ` Neil Jerram
  0 siblings, 1 reply; 26+ messages in thread
From: Ludovic Courtès @ 2008-02-12 14:18 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

Hi,

FYI, I committed this tiny patch that makes `guile-snarf' honor `$TMPDIR' [0].

Thanks,
Ludovic.

[0] http://www.opengroup.org/onlinepubs/009695399/xrat/xbd_chap10.html


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: The patch --]
[-- Type: text/x-patch, Size: 518 bytes --]

--- guile-1.8.3/libguile/guile-snarf.in	2008-02-12 10:32:48.000000000 +0100
+++ guile-1.8.3/libguile/guile-snarf.in	2008-02-12 11:01:53.000000000 +0100
@@ -69,9 +69,12 @@ fi
 
 # set vars and handler -- handle CPP override
 cpp_ok_p=false
-tempdir="/tmp/snarf.$$"
+
+if [ x"$TMPDIR" = x ]; then TMPDIR="/tmp" ; else : ; fi
+tempdir="$TMPDIR/guile-snarf.$$"
 (umask 077 && mkdir $tempdir) || exit 1
 temp="$tempdir/tmp"
+
 if [ x"$CPP" = x ] ; then cpp="@CPP@" ; else cpp="$CPP" ; fi
 
 trap "rm -rf $tempdir" 0 1 2 15

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2008-02-27 21:27 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-12 14:18 Honor `$TMPDIR' in `guile-snarf' Ludovic Courtès
2008-02-12 20:53 ` Neil Jerram
2008-02-12 21:28   ` Bruce Korb
2008-02-12 21:52   ` Ludovic Courtès
2008-02-13 20:25   ` Aleksej Saushev
2008-02-14  7:48     ` Thien-Thi Nguyen
2008-02-14 17:54       ` Aleksej Saushev
2008-02-14 18:30         ` Pkgsrc patches Ludovic Courtès
2008-02-15 20:51           ` Greg Troxel
2008-02-16  1:49           ` patches from pkgsrc - patch-aa Greg Troxel
2008-02-16 11:46             ` Ludovic Courtès
2008-02-16  1:50           ` Pkgsrc patches: patch-ae Greg Troxel
2008-02-16 18:49             ` Ludovic Courtès
2008-02-18 17:12               ` Greg Troxel
2008-02-16  1:50           ` Pkgsrc patches: patch-ag Greg Troxel
2008-02-16 19:28             ` Ludovic Courtès
2008-02-18 14:29               ` Greg Troxel
2008-02-18 15:05                 ` Ludovic Courtès
2008-02-18 16:05                   ` Greg Troxel
2008-02-16  1:53           ` Pkgsrc patches: patch-ah Greg Troxel
2008-02-16  1:55           ` Pkgsrc patches: patch-aj Greg Troxel
2008-02-26 21:58             ` Neil Jerram
2008-02-26 23:41               ` Greg Troxel
2008-02-27 12:20               ` Greg Troxel
2008-02-27 21:27                 ` Neil Jerram
2008-02-16  1:59           ` Pkgsrc patches Greg Troxel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).