# HG changeset patch # User Paul Eggert # Date 1388641870 28800 # Node ID acc2ab46dacb89c0111df242617b129bc91417f0 # Parent da6b936fbeee1a14d256fec455171a7cebab6393 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. diff -r da6b936fbeee -r acc2ab46dacb ChangeLog --- a/ChangeLog Wed Jan 01 20:25:44 2014 -0800 +++ b/ChangeLog Wed Jan 01 21:51:10 2014 -0800 @@ -1,3 +1,10 @@ +2014-01-01 Paul Eggert + + 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. + 2014-01-01 Jim Meyering maint: fix public-submodule-commit to work with newer git diff -r da6b936fbeee -r acc2ab46dacb build-aux/relocatable.sh.in --- a/build-aux/relocatable.sh.in Wed Jan 01 20:25:44 2014 -0800 +++ b/build-aux/relocatable.sh.in Wed Jan 01 21:51:10 2014 -0800 @@ -22,37 +22,6 @@ # along with this program. If not, see . # -# 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 () {