It ensures that the directory/file name is unique. It seems to be quite
available:
http://stackoverflow.com/questions/2792675/how-portable-is-mktemp1


On Mon, Feb 18, 2013 at 3:55 PM, Robert Konigsberg <notifications@github.com
> wrote:

> In release.sh:
>
> > @@ -0,0 +1,59 @@
> > +#!/bin/sh
> > +
> > +VERSION=$1
> > +if [ "${VERSION}" == "" ] ; then
> > +  echo "usage: $0 VERSION"
> > +  exit 1
> > +fi
> > +
> > +function fail() {
> > +  echo $*
> > +  exit 1
> > +}
> > +
> > +TMP=/tmp
> > +TMPDIR_BASE=${TMP}/dygraphs-build.$$
>
> Interesting. Why is this better? It's not standard UNIX.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/danvk/dygraphs/pull/219/files#r3053611>.
>
>