1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

guile-snarf: Honor $TMPDIR.

This commit is contained in:
Ludovic Courtès 2008-02-12 14:10:16 +00:00
parent c84fd82650
commit bc5d49d9c8
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2008-02-12 Ludovic Courtès <ludo@gnu.org>
* guile-snarf.in (tempdir): Honor `$TMPDIR'.
2008-02-11 Neil Jerram <neil@ossau.uklinux.net>
* numbers.c (SCM_COMPLEX_VALUE): Use GUILE_I instead of _Complex_I

View file

@ -1,7 +1,7 @@
#!/bin/sh
# Extract the initialization actions from source files.
#
# Copyright (C) 1996, 97, 98, 99, 2000, 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
# Copyright (C) 1996, 97, 98, 99, 2000, 2001, 2002, 2004, 2006, 2008 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -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