summaryrefslogtreecommitdiff
path: root/build-aux/relocatable.sh.in
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-01-01 21:51:10 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2014-01-01 21:51:35 -0800
commitaac700c7b28cf9df7b880f409e2e104a3af7690b (patch)
tree21abaae96595119c1c54997f9710b68009802363 /build-aux/relocatable.sh.in
parent7a0c729aacc3716a665ce3b0c8cb34843bdecc75 (diff)
downloadgnulib-aac700c7b28cf9df7b880f409e2e104a3af7690b.tar.gz
relocatable-script: remove unused code
Problem reported by Reuben Thomas in: http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
Diffstat (limited to 'build-aux/relocatable.sh.in')
-rw-r--r--build-aux/relocatable.sh.in31
1 files changed, 0 insertions, 31 deletions
diff --git a/build-aux/relocatable.sh.in b/build-aux/relocatable.sh.in
index 08fea0ce0b..47db039297 100644
--- a/build-aux/relocatable.sh.in
+++ b/build-aux/relocatable.sh.in
@@ -22,37 +22,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# func_tmpdir
-# creates a temporary directory.
-# Sets variable
-# - tmp pathname of freshly created temporary directory
-func_tmpdir ()
-{
- # Use the environment variable TMPDIR, falling back to /tmp. This allows
- # users to specify a different temporary directory, for example, if their
- # /tmp is filled up or too small.
- : ${TMPDIR=/tmp}
- {
- # Use the mktemp program if available. If not available, hide the error
- # message.
- tmp=`(umask 077 && mktemp -d "$TMPDIR/glXXXXXX") 2>/dev/null` &&
- test -n "$tmp" && test -d "$tmp"
- } ||
- {
- # Use a simple mkdir command. It is guaranteed to fail if the directory
- # already exists. $RANDOM is bash specific and expands to empty in shells
- # other than bash, ksh and zsh. Its use does not increase security;
- # rather, it minimizes the probability of failure in a very cluttered /tmp
- # directory.
- tmp=$TMPDIR/gl$$-$RANDOM
- (umask 077 && mkdir "$tmp")
- } ||
- {
- echo "$0: cannot create a temporary directory in $TMPDIR" >&2
- { (exit 1); exit 1; }
- }
-}
-
# Support for relocatability.
func_find_curr_installdir ()
{