mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
guile-snarf: Honor $TMPDIR.
This commit is contained in:
parent
c84fd82650
commit
bc5d49d9c8
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue