head	1.2;
access;
symbols
	netbsd-10-1-RELEASE:1.1.1.11.2.1
	netbsd-8-3-RELEASE:1.1.1.9
	netbsd-9-4-RELEASE:1.1.1.10
	netbsd-10-0-RELEASE:1.1.1.11.2.1
	netbsd-10-0-RC6:1.1.1.11.2.1
	netbsd-10-0-RC5:1.1.1.11.2.1
	netbsd-10-0-RC4:1.1.1.11.2.1
	netbsd-10-0-RC3:1.1.1.11.2.1
	netbsd-10-0-RC2:1.1.1.11.2.1
	netbsd-10-0-RC1:1.1.1.11.2.1
	netbsd-10:1.1.1.11.0.2
	netbsd-10-base:1.1.1.11
	pixman-0-42-2:1.1.1.11
	netbsd-9-3-RELEASE:1.1.1.10
	netbsd-9-2-RELEASE:1.1.1.10
	netbsd-9-1-RELEASE:1.1.1.10
	netbsd-8-2-RELEASE:1.1.1.9
	netbsd-9-0-RELEASE:1.1.1.10
	netbsd-9-0-RC2:1.1.1.10
	netbsd-9-0-RC1:1.1.1.10
	netbsd-9:1.1.1.10.0.2
	netbsd-9-base:1.1.1.10
	pixman-0-38-4:1.1.1.12
	netbsd-8-1-RELEASE:1.1.1.9
	netbsd-8-1-RC1:1.1.1.9
	pixman-0-38-0:1.1.1.10
	pixman-0-36-0:1.1.1.10
	netbsd-7-2-RELEASE:1.1.1.8
	netbsd-8-0-RELEASE:1.1.1.9
	netbsd-8-0-RC2:1.1.1.9
	netbsd-8-0-RC1:1.1.1.9
	netbsd-7-1-2-RELEASE:1.1.1.8
	netbsd-7-1-1-RELEASE:1.1.1.8
	netbsd-8:1.1.1.9.0.2
	netbsd-8-base:1.1.1.9
	netbsd-7-1:1.1.1.8.0.6
	netbsd-7-1-RELEASE:1.1.1.8
	pixman-0-34-0:1.1.1.9
	netbsd-7-1-RC2:1.1.1.8
	netbsd-7-1-RC1:1.1.1.8
	netbsd-7-0-2-RELEASE:1.1.1.8
	netbsd-7-0-1-RELEASE:1.1.1.8
	netbsd-7-0:1.1.1.8.0.4
	netbsd-7-0-RELEASE:1.1.1.8
	netbsd-7-0-RC3:1.1.1.8
	netbsd-7-0-RC2:1.1.1.8
	netbsd-7-0-RC1:1.1.1.8
	netbsd-5-2-3-RELEASE:1.1.1.1.2.1
	netbsd-5-1-5-RELEASE:1.1.1.1.2.1
	netbsd-6-0-6-RELEASE:1.1.1.4
	netbsd-6-1-5-RELEASE:1.1.1.4
	netbsd-7:1.1.1.8.0.2
	netbsd-7-base:1.1.1.8
	pixman-0-32-6:1.1.1.8
	netbsd-6-1-4-RELEASE:1.1.1.4
	netbsd-6-0-5-RELEASE:1.1.1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.7
	pixman-0-32-4:1.1.1.7
	riastradh-drm2:1.1.1.6.0.2
	riastradh-drm2-base:1.1.1.6
	netbsd-6-1-3-RELEASE:1.1.1.4
	netbsd-6-0-4-RELEASE:1.1.1.4
	netbsd-5-2-2-RELEASE:1.1.1.1.2.1
	netbsd-5-1-4-RELEASE:1.1.1.1.2.1
	netbsd-6-1-2-RELEASE:1.1.1.4
	netbsd-6-0-3-RELEASE:1.1.1.4
	netbsd-5-2-1-RELEASE:1.1.1.1.2.1
	netbsd-5-1-3-RELEASE:1.1.1.1.2.1
	netbsd-6-1-1-RELEASE:1.1.1.4
	pixman-0-30-0:1.1.1.6
	netbsd-6-1:1.1.1.4.0.6
	netbsd-6-0-2-RELEASE:1.1.1.4
	netbsd-6-1-RELEASE:1.1.1.4
	netbsd-6-1-RC4:1.1.1.4
	netbsd-6-1-RC3:1.1.1.4
	netbsd-6-1-RC2:1.1.1.4
	netbsd-6-1-RC1:1.1.1.4
	pixman-0-28-2:1.1.1.5
	netbsd-5-2:1.1.1.1.2.1.0.4
	netbsd-6-0-1-RELEASE:1.1.1.4
	netbsd-5-2-RELEASE:1.1.1.1.2.1
	netbsd-5-2-RC1:1.1.1.1.2.1
	netbsd-6-0:1.1.1.4.0.4
	netbsd-6-0-RELEASE:1.1.1.4
	netbsd-6-0-RC2:1.1.1.4
	netbsd-6-0-RC1:1.1.1.4
	netbsd-6:1.1.1.4.0.2
	netbsd-6-base:1.1.1.4
	netbsd-5-1-2-RELEASE:1.1.1.1.2.1
	netbsd-5-1-1-RELEASE:1.1.1.1.2.1
	pixman-0-23-2:1.1.1.4
	pixman-0-21-4:1.1.1.3
	pixman-0-21-2:1.1.1.3
	netbsd-5-1:1.1.1.1.2.1.0.2
	netbsd-5-1-RELEASE:1.1.1.1.2.1
	pixman-0-18-4:1.1.1.3
	netbsd-5-1-RC4:1.1.1.1.2.1
	netbsd-5-1-RC3:1.1.1.1.2.1
	pixman-0-18-2:1.1.1.3
	netbsd-5-1-RC2:1.1.1.1.2.1
	netbsd-5-1-RC1:1.1.1.1.2.1
	netbsd-5-0-2-RELEASE:1.1.1.1
	pixman-0-16-2:1.1.1.2
	netbsd-5-0-1-RELEASE:1.1.1.1
	pixman-0-15-16:1.1.1.2
	pixman-0-15-14:1.1.1.2
	pixman-0-15-10:1.1.1.2
	netbsd-5-0:1.1.1.1.0.4
	netbsd-5-0-RELEASE:1.1.1.1
	netbsd-5-0-RC4:1.1.1.1
	netbsd-5-0-RC3:1.1.1.1
	netbsd-5-0-RC2:1.1.1.1
	netbsd-5-0-RC1:1.1.1.1
	netbsd-5:1.1.1.1.0.2
	netbsd-5-base:1.1.1.1
	pixman-0-12-0:1.1.1.1
	pixman-0-11-4:1.1.1.1
	xorg:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2025.07.22.19.23.07;	author mrg;	state dead;
branches;
next	1.1;
commitid	3122IBtpc9e4dM3G;

1.1
date	2008.08.01.04.11.54;	author mrg;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2008.08.01.04.11.54;	author mrg;	state Exp;
branches
	1.1.1.1.2.1;
next	1.1.1.2;

1.1.1.2
date	2009.06.11.04.22.53;	author mrg;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2010.05.23.02.10.10;	author mrg;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2011.08.03.05.58.03;	author mrg;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2013.01.31.10.28.45;	author jmcneill;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2013.06.05.08.59.12;	author mrg;	state Exp;
branches;
next	1.1.1.7;
commitid	YqP7tFeZXVSA9pSw;

1.1.1.7
date	2014.03.17.01.18.22;	author mrg;	state Exp;
branches;
next	1.1.1.8;
commitid	8YKFWj7w8LGwrZsx;

1.1.1.8
date	2014.07.12.04.28.43;	author mrg;	state Exp;
branches;
next	1.1.1.9;
commitid	xiEMHgKUd5DEJ2Ix;

1.1.1.9
date	2017.03.04.23.15.55;	author mrg;	state Exp;
branches;
next	1.1.1.10;
commitid	C0e4VtqgbS1dVhIz;

1.1.1.10
date	2018.12.30.08.55.27;	author mrg;	state Exp;
branches;
next	1.1.1.11;
commitid	BDt5Wugh6MBKKN5B;

1.1.1.11
date	2022.11.12.03.24.10;	author mrg;	state Exp;
branches
	1.1.1.11.2.1;
next	1.1.1.12;
commitid	t5NiTb3vlcB8vm1E;

1.1.1.12
date	2022.12.17.09.03.59;	author mrg;	state Exp;
branches;
next	;
commitid	hurVPyuGJZKFfT5E;

1.1.1.1.2.1
date	2009.09.17.03.33.30;	author snj;	state Exp;
branches;
next	;

1.1.1.11.2.1
date	2022.12.19.12.05.17;	author martin;	state Exp;
branches;
next	;
commitid	9iZz0t5h3mfzba6E;


desc
@@


1.2
log
@merge pixman 0.46.4.
@
text
@#!/bin/sh
# install - install a program, script, or datafile

scriptversion=2006-10-14.15

# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.

nl='
'
IFS=" ""	$nl"

# set DOITPROG to echo to test this script

# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
if test -z "$doit"; then
  doit_exec=exec
else
  doit_exec=$doit
fi

# Put in absolute file names if you don't have them in your path;
# or use environment vars.

mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"

posix_glob=
posix_mkdir=

# Desired mode of installed file.
mode=0755

chmodcmd=$chmodprog
chowncmd=
chgrpcmd=
stripcmd=
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=
dst=
dir_arg=
dstarg=
no_target_directory=

usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
   or: $0 [OPTION]... SRCFILES... DIRECTORY
   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
   or: $0 [OPTION]... -d DIRECTORIES...

In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.

Options:
-c         (ignored)
-d         create directories instead of installing files.
-g GROUP   $chgrpprog installed files to GROUP.
-m MODE    $chmodprog installed files to MODE.
-o USER    $chownprog installed files to USER.
-s         $stripprog installed files.
-t DIRECTORY  install into DIRECTORY.
-T         report an error if DSTFILE is a directory.
--help     display this help and exit.
--version  display version info and exit.

Environment variables override the default commands:
  CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
"

while test $# -ne 0; do
  case $1 in
    -c) shift
        continue;;

    -d) dir_arg=true
        shift
        continue;;

    -g) chgrpcmd="$chgrpprog $2"
        shift
        shift
        continue;;

    --help) echo "$usage"; exit $?;;

    -m) mode=$2
        shift
        shift
	case $mode in
	  *' '* | *'	'* | *'
'*	  | *'*'* | *'?'* | *'['*)
	    echo "$0: invalid mode: $mode" >&2
	    exit 1;;
	esac
        continue;;

    -o) chowncmd="$chownprog $2"
        shift
        shift
        continue;;

    -s) stripcmd=$stripprog
        shift
        continue;;

    -t) dstarg=$2
	shift
	shift
	continue;;

    -T) no_target_directory=true
	shift
	continue;;

    --version) echo "$0 $scriptversion"; exit $?;;

    --)	shift
	break;;

    -*)	echo "$0: invalid option: $1" >&2
	exit 1;;

    *)  break;;
  esac
done

if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
  # When -d is used, all remaining arguments are directories to create.
  # When -t is used, the destination is already specified.
  # Otherwise, the last argument is the destination.  Remove it from $@@.
  for arg
  do
    if test -n "$dstarg"; then
      # $@@ is not empty: it contains at least $arg.
      set fnord "$@@" "$dstarg"
      shift # fnord
    fi
    shift # arg
    dstarg=$arg
  done
fi

if test $# -eq 0; then
  if test -z "$dir_arg"; then
    echo "$0: no input file specified." >&2
    exit 1
  fi
  # It's OK to call `install-sh -d' without argument.
  # This can happen when creating conditional directories.
  exit 0
fi

if test -z "$dir_arg"; then
  trap '(exit $?); exit' 1 2 13 15

  # Set umask so as not to create temps with too-generous modes.
  # However, 'strip' requires both read and write access to temps.
  case $mode in
    # Optimize common cases.
    *644) cp_umask=133;;
    *755) cp_umask=22;;

    *[0-7])
      if test -z "$stripcmd"; then
	u_plus_rw=
      else
	u_plus_rw='% 200'
      fi
      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
    *)
      if test -z "$stripcmd"; then
	u_plus_rw=
      else
	u_plus_rw=,u+rw
      fi
      cp_umask=$mode$u_plus_rw;;
  esac
fi

for src
do
  # Protect names starting with `-'.
  case $src in
    -*) src=./$src ;;
  esac

  if test -n "$dir_arg"; then
    dst=$src
    dstdir=$dst
    test -d "$dstdir"
    dstdir_status=$?
  else

    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
    # might cause directories to be created, which would be especially bad
    # if $src (and thus $dsttmp) contains '*'.
    if test ! -f "$src" && test ! -d "$src"; then
      echo "$0: $src does not exist." >&2
      exit 1
    fi

    if test -z "$dstarg"; then
      echo "$0: no destination specified." >&2
      exit 1
    fi

    dst=$dstarg
    # Protect names starting with `-'.
    case $dst in
      -*) dst=./$dst ;;
    esac

    # If destination is a directory, append the input filename; won't work
    # if double slashes aren't ignored.
    if test -d "$dst"; then
      if test -n "$no_target_directory"; then
	echo "$0: $dstarg: Is a directory" >&2
	exit 1
      fi
      dstdir=$dst
      dst=$dstdir/`basename "$src"`
      dstdir_status=0
    else
      # Prefer dirname, but fall back on a substitute if dirname fails.
      dstdir=`
	(dirname "$dst") 2>/dev/null ||
	expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	     X"$dst" : 'X\(//\)[^/]' \| \
	     X"$dst" : 'X\(//\)$' \| \
	     X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
	echo X"$dst" |
	    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
		   s//\1/
		   q
		 }
		 /^X\(\/\/\)[^/].*/{
		   s//\1/
		   q
		 }
		 /^X\(\/\/\)$/{
		   s//\1/
		   q
		 }
		 /^X\(\/\).*/{
		   s//\1/
		   q
		 }
		 s/.*/./; q'
      `

      test -d "$dstdir"
      dstdir_status=$?
    fi
  fi

  obsolete_mkdir_used=false

  if test $dstdir_status != 0; then
    case $posix_mkdir in
      '')
	# Create intermediate dirs using mode 755 as modified by the umask.
	# This is like FreeBSD 'install' as of 1997-10-28.
	umask=`umask`
	case $stripcmd.$umask in
	  # Optimize common cases.
	  *[2367][2367]) mkdir_umask=$umask;;
	  .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;

	  *[0-7])
	    mkdir_umask=`expr $umask + 22 \
	      - $umask % 100 % 40 + $umask % 20 \
	      - $umask % 10 % 4 + $umask % 2
	    `;;
	  *) mkdir_umask=$umask,go-w;;
	esac

	# With -d, create the new directory with the user-specified mode.
	# Otherwise, rely on $mkdir_umask.
	if test -n "$dir_arg"; then
	  mkdir_mode=-m$mode
	else
	  mkdir_mode=
	fi

	posix_mkdir=false
	case $umask in
	  *[123567][0-7][0-7])
	    # POSIX mkdir -p sets u+wx bits regardless of umask, which
	    # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
	    ;;
	  *)
	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0

	    if (umask $mkdir_umask &&
		exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
	    then
	      if test -z "$dir_arg" || {
		   # Check for POSIX incompatibilities with -m.
		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
		   # other-writeable bit of parent directory when it shouldn't.
		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
		   ls_ld_tmpdir=`ls -ld "$tmpdir"`
		   case $ls_ld_tmpdir in
		     d????-?r-*) different_mode=700;;
		     d????-?--*) different_mode=755;;
		     *) false;;
		   esac &&
		   $mkdirprog -m$different_mode -p -- "$tmpdir" && {
		     ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
		     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
		   }
		 }
	      then posix_mkdir=:
	      fi
	      rmdir "$tmpdir/d" "$tmpdir"
	    else
	      # Remove any dirs left behind by ancient mkdir implementations.
	      rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
	    fi
	    trap '' 0;;
	esac;;
    esac

    if
      $posix_mkdir && (
	umask $mkdir_umask &&
	$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
      )
    then :
    else

      # The umask is ridiculous, or mkdir does not conform to POSIX,
      # or it failed possibly due to a race condition.  Create the
      # directory the slow way, step by step, checking for races as we go.

      case $dstdir in
	/*) prefix=/ ;;
	-*) prefix=./ ;;
	*)  prefix= ;;
      esac

      case $posix_glob in
        '')
	  if (set -f) 2>/dev/null; then
	    posix_glob=true
	  else
	    posix_glob=false
	  fi ;;
      esac

      oIFS=$IFS
      IFS=/
      $posix_glob && set -f
      set fnord $dstdir
      shift
      $posix_glob && set +f
      IFS=$oIFS

      prefixes=

      for d
      do
	test -z "$d" && continue

	prefix=$prefix$d
	if test -d "$prefix"; then
	  prefixes=
	else
	  if $posix_mkdir; then
	    (umask=$mkdir_umask &&
	     $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
	    # Don't fail if two instances are running concurrently.
	    test -d "$prefix" || exit 1
	  else
	    case $prefix in
	      *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
	      *) qprefix=$prefix;;
	    esac
	    prefixes="$prefixes '$qprefix'"
	  fi
	fi
	prefix=$prefix/
      done

      if test -n "$prefixes"; then
	# Don't fail if two instances are running concurrently.
	(umask $mkdir_umask &&
	 eval "\$doit_exec \$mkdirprog $prefixes") ||
	  test -d "$dstdir" || exit 1
	obsolete_mkdir_used=true
      fi
    fi
  fi

  if test -n "$dir_arg"; then
    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  else

    # Make a couple of temp file names in the proper directory.
    dsttmp=$dstdir/_inst.$$_
    rmtmp=$dstdir/_rm.$$_

    # Trap to clean up those temp files at exit.
    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0

    # Copy the file name to the temp name.
    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&

    # and set any options; do chmod last to preserve setuid bits.
    #
    # If any of these fail, we abort the whole thing.  If we want to
    # ignore errors from any of these, just make sure not to ignore
    # errors from the above "$doit $cpprog $src $dsttmp" command.
    #
    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
      && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
      && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&

    # Now rename the file to the real destination.
    { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
      || {
	   # The rename failed, perhaps because mv can't rename something else
	   # to itself, or perhaps because mv is so ancient that it does not
	   # support -f.

	   # Now remove or move aside any old file at destination location.
	   # We try this two ways since rm can't unlink itself on some
	   # systems and the destination file might be busy for other
	   # reasons.  In this case, the final cleanup might fail but the new
	   # file should still install successfully.
	   {
	     if test -f "$dst"; then
	       $doit $rmcmd -f "$dst" 2>/dev/null \
	       || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
		     && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
	       || {
		 echo "$0: cannot unlink or rename $dst" >&2
		 (exit 1); exit 1
	       }
	     else
	       :
	     fi
	   } &&

	   # Now rename the file to the real destination.
	   $doit $mvcmd "$dsttmp" "$dst"
	 }
    } || exit 1

    trap '' 0
  fi
done

# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# End:
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@initial import of pixman-0.11.4
@
text
@@


1.1.1.1.2.1
log
@Apply patch (requested by mrg in ticket #958):
Bring over X.Org updates from HEAD.
@
text
@d4 1
a4 1
scriptversion=2006-12-25.00
d51 1
a51 1
doit=${DOITPROG-}
d61 8
a68 20
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
stripprog=${STRIPPROG-strip}

posix_glob='?'
initialize_posix_glob='
  test "$posix_glob" != "?" || {
    if (set -f) 2>/dev/null; then
      posix_glob=
    else
      posix_glob=:
    fi
  }
'
d70 1
a75 1
chgrpcmd=
d78 2
a79 1
mvcmd=$mvprog
d81 1
a81 2
stripcmd=

d85 1
a85 3
dst_arg=

copy_on_change=false
d88 1
a88 2
usage="\
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
d98 10
a107 12
     --help     display this help and exit.
     --version  display version info and exit.

  -c            (ignored)
  -C            install only if different (preserve the last data modification time)
  -d            create directories instead of installing files.
  -g GROUP      $chgrpprog installed files to GROUP.
  -m MODE       $chmodprog installed files to MODE.
  -o USER       $chownprog installed files to USER.
  -s            $stripprog installed files.
  -t DIRECTORY  install into DIRECTORY.
  -T            report an error if DSTFILE is a directory.
d110 1
a110 2
  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  RMPROG STRIPPROG
d115 2
a116 3
    -c) ;;

    -C) copy_on_change=true;;
d118 3
a120 1
    -d) dir_arg=true;;
d123 3
a125 1
	shift;;
d130 2
d138 1
a138 1
	shift;;
d141 16
a156 8
	shift;;

    -s) stripcmd=$stripprog;;

    -t) dst_arg=$2
	shift;;

    -T) no_target_directory=true;;
a167 1
  shift
d170 1
a170 1
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
d176 1
a176 1
    if test -n "$dst_arg"; then
d178 1
a178 1
      set fnord "$@@" "$dst_arg"
d182 1
a182 1
    dst_arg=$arg
d227 1
a227 1
    -*) src=./$src;;
d245 1
a245 1
    if test -z "$dst_arg"; then
d250 1
a250 1
    dst=$dst_arg
d253 1
a253 1
      -*) dst=./$dst;;
d260 1
a260 1
	echo "$0: $dst_arg: Is a directory" >&2
d381 3
a383 3
	/*) prefix='/';;
	-*) prefix='./';;
	*)  prefix='';;
d386 8
a393 1
      eval "$initialize_posix_glob"
d397 1
a397 1
      $posix_glob set -f
d400 1
a400 1
      $posix_glob set +f
d462 35
a496 48
    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&

    # If -C, don't bother to copy if it wouldn't change the file.
    if $copy_on_change &&
       old=`LC_ALL=C ls -dlL "$dst"	2>/dev/null` &&
       new=`LC_ALL=C ls -dlL "$dsttmp"	2>/dev/null` &&

       eval "$initialize_posix_glob" &&
       $posix_glob set -f &&
       set X $old && old=:$2:$4:$5:$6 &&
       set X $new && new=:$2:$4:$5:$6 &&
       $posix_glob set +f &&

       test "$old" = "$new" &&
       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
    then
      rm -f "$dsttmp"
    else
      # Rename the file to the real destination.
      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||

      # The rename failed, perhaps because mv can't rename something else
      # to itself, or perhaps because mv is so ancient that it does not
      # support -f.
      {
	# Now remove or move aside any old file at destination location.
	# We try this two ways since rm can't unlink itself on some
	# systems and the destination file might be busy for other
	# reasons.  In this case, the final cleanup might fail but the new
	# file should still install successfully.
	{
	  test ! -f "$dst" ||
	  $doit $rmcmd -f "$dst" 2>/dev/null ||
	  { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
	    { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
	  } ||
	  { echo "$0: cannot unlink or rename $dst" >&2
	    (exit 1); exit 1
	  }
	} &&

	# Now rename the file to the real destination.
	$doit $mvcmd "$dsttmp" "$dst"
      }
    fi || exit 1
@


1.1.1.2
log
@initial import of pixman-0.15.10
@
text
@d4 1
a4 1
scriptversion=2006-12-25.00
d51 1
a51 1
doit=${DOITPROG-}
d61 8
a68 20
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
stripprog=${STRIPPROG-strip}

posix_glob='?'
initialize_posix_glob='
  test "$posix_glob" != "?" || {
    if (set -f) 2>/dev/null; then
      posix_glob=
    else
      posix_glob=:
    fi
  }
'
d70 1
a75 1
chgrpcmd=
d78 2
a79 1
mvcmd=$mvprog
d81 1
a81 2
stripcmd=

d85 1
a85 3
dst_arg=

copy_on_change=false
d88 1
a88 2
usage="\
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
d98 10
a107 12
     --help     display this help and exit.
     --version  display version info and exit.

  -c            (ignored)
  -C            install only if different (preserve the last data modification time)
  -d            create directories instead of installing files.
  -g GROUP      $chgrpprog installed files to GROUP.
  -m MODE       $chmodprog installed files to MODE.
  -o USER       $chownprog installed files to USER.
  -s            $stripprog installed files.
  -t DIRECTORY  install into DIRECTORY.
  -T            report an error if DSTFILE is a directory.
d110 1
a110 2
  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  RMPROG STRIPPROG
d115 2
a116 3
    -c) ;;

    -C) copy_on_change=true;;
d118 3
a120 1
    -d) dir_arg=true;;
d123 3
a125 1
	shift;;
d130 2
d138 1
a138 1
	shift;;
d141 16
a156 8
	shift;;

    -s) stripcmd=$stripprog;;

    -t) dst_arg=$2
	shift;;

    -T) no_target_directory=true;;
a167 1
  shift
d170 1
a170 1
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
d176 1
a176 1
    if test -n "$dst_arg"; then
d178 1
a178 1
      set fnord "$@@" "$dst_arg"
d182 1
a182 1
    dst_arg=$arg
d227 1
a227 1
    -*) src=./$src;;
d245 1
a245 1
    if test -z "$dst_arg"; then
d250 1
a250 1
    dst=$dst_arg
d253 1
a253 1
      -*) dst=./$dst;;
d260 1
a260 1
	echo "$0: $dst_arg: Is a directory" >&2
d381 3
a383 3
	/*) prefix='/';;
	-*) prefix='./';;
	*)  prefix='';;
d386 8
a393 1
      eval "$initialize_posix_glob"
d397 1
a397 1
      $posix_glob set -f
d400 1
a400 1
      $posix_glob set +f
d462 35
a496 48
    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&

    # If -C, don't bother to copy if it wouldn't change the file.
    if $copy_on_change &&
       old=`LC_ALL=C ls -dlL "$dst"	2>/dev/null` &&
       new=`LC_ALL=C ls -dlL "$dsttmp"	2>/dev/null` &&

       eval "$initialize_posix_glob" &&
       $posix_glob set -f &&
       set X $old && old=:$2:$4:$5:$6 &&
       set X $new && new=:$2:$4:$5:$6 &&
       $posix_glob set +f &&

       test "$old" = "$new" &&
       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
    then
      rm -f "$dsttmp"
    else
      # Rename the file to the real destination.
      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||

      # The rename failed, perhaps because mv can't rename something else
      # to itself, or perhaps because mv is so ancient that it does not
      # support -f.
      {
	# Now remove or move aside any old file at destination location.
	# We try this two ways since rm can't unlink itself on some
	# systems and the destination file might be busy for other
	# reasons.  In this case, the final cleanup might fail but the new
	# file should still install successfully.
	{
	  test ! -f "$dst" ||
	  $doit $rmcmd -f "$dst" 2>/dev/null ||
	  { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
	    { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
	  } ||
	  { echo "$0: cannot unlink or rename $dst" >&2
	    (exit 1); exit 1
	  }
	} &&

	# Now rename the file to the real destination.
	$doit $mvcmd "$dsttmp" "$dst"
      }
    fi || exit 1
@


1.1.1.3
log
@initial import of pixman-0.18.2
@
text
@d4 1
a4 1
scriptversion=2009-04-28.21; # UTC
d518 1
a518 2
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
@


1.1.1.4
log
@initial import of pixman-0.23.2.  important changes include:
	- more SSE2 support
	- more arm neon and A8 support
	- several bug fixes
@
text
@d4 1
a4 1
scriptversion=2006-12-25.00
d518 2
a519 1
# time-stamp-end: "$"
@


1.1.1.5
log
@initial import of pixman-0.28.2
@
text
@d4 1
a4 1
scriptversion=2009-04-28.21; # UTC
d518 1
a518 2
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
@


1.1.1.6
log
@initial import of pixman-0.30.0
@
text
@d4 1
a4 1
scriptversion=2011-01-19.21; # UTC
a158 4
	# Protect names problematic for `test' and other utilities.
	case $dst_arg in
	  -* | [=\(\)!]) dst_arg=./$dst_arg;;
	esac
a188 4
    # Protect names problematic for `test' and other utilities.
    case $dst_arg in
      -* | [=\(\)!]) dst_arg=./$dst_arg;;
    esac
d203 1
a203 5
  do_exit='(exit $ret); exit $ret'
  trap "ret=129; $do_exit" 1
  trap "ret=130; $do_exit" 2
  trap "ret=141; $do_exit" 13
  trap "ret=143; $do_exit" 15
d231 1
a231 1
  # Protect names problematic for `test' and other utilities.
d233 1
a233 1
    -* | [=\(\)!]) src=./$src;;
d255 1
d257 4
d388 1
a388 1
	[-=\(\)!]*) prefix='./';;
d406 1
a406 1
	test X"$d" = X && continue
@


1.1.1.7
log
@initial import of pixman-0.32.4
@
text
@d4 1
a4 1
scriptversion=2011-11-20.07; # UTC
d38 1
a38 1
# 'make' implicit rules from creating a file called install from it
d159 1
a159 1
	# Protect names problematic for 'test' and other utilities.
d193 1
a193 1
    # Protect names problematic for 'test' and other utilities.
d205 1
a205 1
  # It's OK to call 'install-sh -d' without argument.
d243 1
a243 1
  # Protect names problematic for 'test' and other utilities.
d357 1
a357 1
		   # other-writable bit of parent directory when it shouldn't.
@


1.1.1.8
log
@initial import of pixman-0.32.6
@
text
@d4 1
a4 1
scriptversion=2011-01-19.21; # UTC
d38 1
a38 1
# `make' implicit rules from creating a file called install from it
d159 1
a159 1
	# Protect names problematic for `test' and other utilities.
d193 1
a193 1
    # Protect names problematic for `test' and other utilities.
d205 1
a205 1
  # It's OK to call `install-sh -d' without argument.
d243 1
a243 1
  # Protect names problematic for `test' and other utilities.
d357 1
a357 1
		   # other-writeable bit of parent directory when it shouldn't.
@


1.1.1.9
log
@initial import of pixman-0.34.0
@
text
@d4 1
a4 1
scriptversion=2013-12-25.23; # UTC
d38 1
a38 1
# 'make' implicit rules from creating a file called install from it
a43 1
tab='	'
d46 1
a46 1
IFS=" $tab$nl"
d48 1
a48 1
# Set DOITPROG to "echo" to test this script.
d50 1
d52 5
a56 1
doit_exec=${doit:-exec}
d71 11
d100 1
a100 1
is_target_a_directory=possibly
d140 1
a140 1
        shift;;
d145 7
a151 6
        case $mode in
          *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
            echo "$0: invalid mode: $mode" >&2
            exit 1;;
        esac
        shift;;
d154 1
a154 1
        shift;;
d158 6
a163 8
    -t)
        is_target_a_directory=always
        dst_arg=$2
        # Protect names problematic for 'test' and other utilities.
        case $dst_arg in
          -* | [=\(\)!]) dst_arg=./$dst_arg;;
        esac
        shift;;
d165 1
a165 1
    -T) is_target_a_directory=never;;
d169 2
a170 2
    --) shift
        break;;
d172 2
a173 2
    -*) echo "$0: invalid option: $1" >&2
        exit 1;;
a179 10
# We allow the use of options -d and -T together, by making -d
# take the precedence; this is for compatibility with GNU install.

if test -n "$dir_arg"; then
  if test -n "$dst_arg"; then
    echo "$0: target directory not allowed when installing a directory." >&2
    exit 1
  fi
fi

d193 1
a193 1
    # Protect names problematic for 'test' and other utilities.
d205 1
a205 1
  # It's OK to call 'install-sh -d' without argument.
a210 9
  if test $# -gt 1 || test "$is_target_a_directory" = always; then
    if test ! -d "$dst_arg"; then
      echo "$0: $dst_arg: Is not a directory." >&2
      exit 1
    fi
  fi
fi

if test -z "$dir_arg"; then
d226 1
a226 1
        u_plus_rw=
d228 1
a228 1
        u_plus_rw='% 200'
d233 1
a233 1
        u_plus_rw=
d235 1
a235 1
        u_plus_rw=,u+rw
d243 1
a243 1
  # Protect names problematic for 'test' and other utilities.
d272 3
a274 3
      if test "$is_target_a_directory" = never; then
        echo "$0: $dst_arg: Is a directory" >&2
        exit 1
d280 27
a306 1
      dstdir=`dirname "$dst"`
d317 62
a378 62
        # Create intermediate dirs using mode 755 as modified by the umask.
        # This is like FreeBSD 'install' as of 1997-10-28.
        umask=`umask`
        case $stripcmd.$umask in
          # Optimize common cases.
          *[2367][2367]) mkdir_umask=$umask;;
          .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;

          *[0-7])
            mkdir_umask=`expr $umask + 22 \
              - $umask % 100 % 40 + $umask % 20 \
              - $umask % 10 % 4 + $umask % 2
            `;;
          *) mkdir_umask=$umask,go-w;;
        esac

        # With -d, create the new directory with the user-specified mode.
        # Otherwise, rely on $mkdir_umask.
        if test -n "$dir_arg"; then
          mkdir_mode=-m$mode
        else
          mkdir_mode=
        fi

        posix_mkdir=false
        case $umask in
          *[123567][0-7][0-7])
            # POSIX mkdir -p sets u+wx bits regardless of umask, which
            # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
            ;;
          *)
            tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
            trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0

            if (umask $mkdir_umask &&
                exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
            then
              if test -z "$dir_arg" || {
                   # Check for POSIX incompatibilities with -m.
                   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
                   # other-writable bit of parent directory when it shouldn't.
                   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
                   ls_ld_tmpdir=`ls -ld "$tmpdir"`
                   case $ls_ld_tmpdir in
                     d????-?r-*) different_mode=700;;
                     d????-?--*) different_mode=755;;
                     *) false;;
                   esac &&
                   $mkdirprog -m$different_mode -p -- "$tmpdir" && {
                     ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
                     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
                   }
                 }
              then posix_mkdir=:
              fi
              rmdir "$tmpdir/d" "$tmpdir"
            else
              # Remove any dirs left behind by ancient mkdir implementations.
              rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
            fi
            trap '' 0;;
        esac;;
d383 2
a384 2
        umask $mkdir_umask &&
        $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
d394 3
a396 3
        /*) prefix='/';;
        [-=\(\)!]*) prefix='./';;
        *)  prefix='';;
d399 2
d403 1
a403 1
      set -f
d406 1
a406 1
      set +f
d413 1
a413 1
        test X"$d" = X && continue
d415 18
a432 18
        prefix=$prefix$d
        if test -d "$prefix"; then
          prefixes=
        else
          if $posix_mkdir; then
            (umask=$mkdir_umask &&
             $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
            # Don't fail if two instances are running concurrently.
            test -d "$prefix" || exit 1
          else
            case $prefix in
              *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
              *) qprefix=$prefix;;
            esac
            prefixes="$prefixes '$qprefix'"
          fi
        fi
        prefix=$prefix/
d436 5
a440 5
        # Don't fail if two instances are running concurrently.
        (umask $mkdir_umask &&
         eval "\$doit_exec \$mkdirprog $prefixes") ||
          test -d "$dstdir" || exit 1
        obsolete_mkdir_used=true
d475 5
a479 3
       old=`LC_ALL=C ls -dlL "$dst"     2>/dev/null` &&
       new=`LC_ALL=C ls -dlL "$dsttmp"  2>/dev/null` &&
       set -f &&
d482 2
a483 1
       set +f &&
d496 15
a510 15
        # Now remove or move aside any old file at destination location.
        # We try this two ways since rm can't unlink itself on some
        # systems and the destination file might be busy for other
        # reasons.  In this case, the final cleanup might fail but the new
        # file should still install successfully.
        {
          test ! -f "$dst" ||
          $doit $rmcmd -f "$dst" 2>/dev/null ||
          { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
            { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
          } ||
          { echo "$0: cannot unlink or rename $dst" >&2
            (exit 1); exit 1
          }
        } &&
d512 2
a513 2
        # Now rename the file to the real destination.
        $doit $mvcmd "$dsttmp" "$dst"
@


1.1.1.10
log
@initial import of pixman-0.36.0
@
text
@d4 1
a4 1
scriptversion=2018-03-11.20; # UTC
d274 2
a275 1
    # If destination is a directory, append the input filename.
d282 1
a282 5
      dstbase=`basename "$src"`
      case $dst in
	*/) dst=$dst$dstbase;;
	*)  dst=$dst/$dstbase;;
      esac
a290 5
  case $dstdir in
    */) dstdirslash=$dstdir;;
    *)  dstdirslash=$dstdir/;;
  esac

a326 2
            # Note that $RANDOM variable is not portable (e.g. dash);  Use it
            # here however when possible just to lower collision chance.
d328 1
a329 6
            trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0

            # Because "mkdir -p" follows existing symlinks and we likely work
            # directly in world-writeable /tmp, make sure that the '$tmpdir'
            # directory is successfully created first before we actually test
            # 'mkdir -p' feature.
d331 1
a331 2
                $mkdirprog $mkdir_mode "$tmpdir" &&
                exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
d338 1
a338 2
                   test_tmpdir="$tmpdir/a"
                   ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
d344 2
a345 2
                   $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
                     ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
d351 1
a351 1
              rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
d354 1
a354 1
              rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
d430 2
a431 2
    dsttmp=${dstdirslash}_inst.$$_
    rmtmp=${dstdirslash}_rm.$$_
d496 1
a496 1
# eval: (add-hook 'before-save-hook 'time-stamp)
d499 1
a499 1
# time-stamp-time-zone: "UTC0"
@


1.1.1.11
log
@initial import of pixman-0.42.2
@
text
@d4 1
a4 1
scriptversion=2020-11-14.01; # UTC
a71 5
# Create dirs (including intermediate dirs) using mode 755.
# This is like GNU 'install' as of coreutils 8.32 (2020).
mkdir_umask=22

backupsuffix=
d102 1
a102 1
  -C            install only if different (preserve data modification time)
a106 1
  -p            pass -p to $cpprog.
a107 1
  -S SUFFIX     attempt to back up existing files, with suffix SUFFIX.
a113 8

By default, rm is invoked with -f; when overridden with RMPROG,
it's up to you to specify -f if you want it.

If -S is not specified, no backups are attempted.

Email bug reports to bug-automake@@gnu.org.
Automake home page: https://www.gnu.org/software/automake/
a139 2
    -p) cpprog="$cpprog -p";;

a141 3
    -S) backupsuffix="$2"
        shift;;

a257 4
    # Don't chown directories that already exist.
    if test $dstdir_status = 0; then
      chowncmd=""
    fi
d304 16
d329 46
a374 43
	# The $RANDOM variable is not portable (e.g., dash).  Use it
	# here however when possible just to lower collision chance.
	tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$

	trap '
	  ret=$?
	  rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
	  exit $ret
	' 0

	# Because "mkdir -p" follows existing symlinks and we likely work
	# directly in world-writeable /tmp, make sure that the '$tmpdir'
	# directory is successfully created first before we actually test
	# 'mkdir -p'.
	if (umask $mkdir_umask &&
	    $mkdirprog $mkdir_mode "$tmpdir" &&
	    exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
	then
	  if test -z "$dir_arg" || {
	       # Check for POSIX incompatibilities with -m.
	       # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
	       # other-writable bit of parent directory when it shouldn't.
	       # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
	       test_tmpdir="$tmpdir/a"
	       ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
	       case $ls_ld_tmpdir in
		 d????-?r-*) different_mode=700;;
		 d????-?--*) different_mode=755;;
		 *) false;;
	       esac &&
	       $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
		 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
		 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
	       }
	     }
	  then posix_mkdir=:
	  fi
	  rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
	else
	  # Remove any dirs left behind by ancient mkdir implementations.
	  rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
	fi
	trap '' 0;;
d385 1
a385 1
      # mkdir does not conform to POSIX,
d414 1
a414 1
            (umask $mkdir_umask &&
d454 1
a454 12
    (umask $cp_umask &&
     { test -z "$stripcmd" || {
	 # Create $dsttmp read-write so that cp doesn't create it read-only,
	 # which would cause strip to fail.
	 if test -z "$doit"; then
	   : >"$dsttmp" # No need to fork-exec 'touch'.
	 else
	   $doit touch "$dsttmp"
	 fi
       }
     } &&
     $doit_exec $cpprog "$src" "$dsttmp") &&
a479 7
      # If $backupsuffix is set, and the file being installed
      # already exists, attempt a backup.  Don't worry if it fails,
      # e.g., if mv doesn't support -f.
      if test -n "$backupsuffix" && test -f "$dst"; then
        $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
      fi

d494 1
a494 1
          $doit $rmcmd "$dst" 2>/dev/null ||
d496 1
a496 1
            { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
@


1.1.1.11.2.1
log
@Revert pixman to 0.38.4, via patch, requested my mrg in ticket #5

xsrc/external/mit/pixman/dist/Makefile.am			apply patch
xsrc/external/mit/pixman/dist/Makefile.in			apply patch
xsrc/external/mit/pixman/dist/README				apply patch
xsrc/external/mit/pixman/dist/a64-neon-test.S			apply patch
xsrc/external/mit/pixman/dist/aclocal.m4			apply patch
xsrc/external/mit/pixman/dist/compile				apply patch
xsrc/external/mit/pixman/dist/config.guess			apply patch
xsrc/external/mit/pixman/dist/config.h.in			apply patch
xsrc/external/mit/pixman/dist/config.sub			apply patch
xsrc/external/mit/pixman/dist/configure				apply patch
xsrc/external/mit/pixman/dist/configure.ac			apply patch
xsrc/external/mit/pixman/dist/depcomp				apply patch
xsrc/external/mit/pixman/dist/install-sh			apply patch
xsrc/external/mit/pixman/dist/ltmain.sh				apply patch
xsrc/external/mit/pixman/dist/meson.build			apply patch
xsrc/external/mit/pixman/dist/meson_options.txt			apply patch
xsrc/external/mit/pixman/dist/missing				apply patch
xsrc/external/mit/pixman/dist/test-driver			apply patch
xsrc/external/mit/pixman/dist/demos/Makefile.am			apply patch
xsrc/external/mit/pixman/dist/demos/Makefile.in			apply patch
xsrc/external/mit/pixman/dist/demos/dither.c			apply patch
xsrc/external/mit/pixman/dist/demos/dither.ui			apply patch
xsrc/external/mit/pixman/dist/demos/gtk-utils.c			apply patch
xsrc/external/mit/pixman/dist/demos/meson.build			apply patch
xsrc/external/mit/pixman/dist/demos/scale.c			apply patch
xsrc/external/mit/pixman/dist/pixman/Makefile.am		apply patch
xsrc/external/mit/pixman/dist/pixman/Makefile.in		apply patch
xsrc/external/mit/pixman/dist/pixman/Makefile.sources		apply patch
xsrc/external/mit/pixman/dist/pixman/loongson-mmintrin.h	apply patch
xsrc/external/mit/pixman/dist/pixman/meson.build		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-access.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arm-neon.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arm.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arma64-neon-asm-bilinear.S	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arma64-neon-asm.S	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arma64-neon-asm.h	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-bits-image.c	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-combine32.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-combine32.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-compiler.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-fast-path.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-general.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-gradient-walker.c	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-image.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-implementation.c	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-inlines.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-matrix.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-mmx.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-ppc.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-private.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-region.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-sse2.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-trap.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-utils.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-version.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-version.h.in	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-x86.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman.h			apply patch
xsrc/external/mit/pixman/dist/test/Makefile.in			apply patch
xsrc/external/mit/pixman/dist/test/affine-test.c		apply patch
xsrc/external/mit/pixman/dist/test/lowlevel-blt-bench.c		apply patch
xsrc/external/mit/pixman/dist/test/meson.build			apply patch
xsrc/external/mit/pixman/dist/test/solid-test.c			apply patch
xsrc/external/mit/pixman/dist/test/stress-test.c		apply patch
xsrc/external/mit/pixman/dist/test/thread-test.c		apply patch
xsrc/external/mit/pixman/dist/test/tolerance-test.c		apply patch
xsrc/external/mit/pixman/dist/test/utils.c			apply patch
xsrc/external/mit/pixman/dist/test/utils.h			apply patch
xsrc/external/mit/pixman/include/config.h			apply patch
@
text
@d4 1
a4 1
scriptversion=2018-03-11.20; # UTC
d72 5
d107 1
a107 1
  -C            install only if different (preserve the last data modification time)
d112 1
d114 1
d121 8
d155 2
d159 3
d278 4
a327 16
        # Create intermediate dirs using mode 755 as modified by the umask.
        # This is like FreeBSD 'install' as of 1997-10-28.
        umask=`umask`
        case $stripcmd.$umask in
          # Optimize common cases.
          *[2367][2367]) mkdir_umask=$umask;;
          .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;

          *[0-7])
            mkdir_umask=`expr $umask + 22 \
              - $umask % 100 % 40 + $umask % 20 \
              - $umask % 10 % 4 + $umask % 2
            `;;
          *) mkdir_umask=$umask,go-w;;
        esac

d337 43
a379 46
        case $umask in
          *[123567][0-7][0-7])
            # POSIX mkdir -p sets u+wx bits regardless of umask, which
            # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
            ;;
          *)
            # Note that $RANDOM variable is not portable (e.g. dash);  Use it
            # here however when possible just to lower collision chance.
            tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$

            trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0

            # Because "mkdir -p" follows existing symlinks and we likely work
            # directly in world-writeable /tmp, make sure that the '$tmpdir'
            # directory is successfully created first before we actually test
            # 'mkdir -p' feature.
            if (umask $mkdir_umask &&
                $mkdirprog $mkdir_mode "$tmpdir" &&
                exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
            then
              if test -z "$dir_arg" || {
                   # Check for POSIX incompatibilities with -m.
                   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
                   # other-writable bit of parent directory when it shouldn't.
                   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
                   test_tmpdir="$tmpdir/a"
                   ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
                   case $ls_ld_tmpdir in
                     d????-?r-*) different_mode=700;;
                     d????-?--*) different_mode=755;;
                     *) false;;
                   esac &&
                   $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
                     ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
                     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
                   }
                 }
              then posix_mkdir=:
              fi
              rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
            else
              # Remove any dirs left behind by ancient mkdir implementations.
              rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
            fi
            trap '' 0;;
        esac;;
d390 1
a390 1
      # The umask is ridiculous, or mkdir does not conform to POSIX,
d419 1
a419 1
            (umask=$mkdir_umask &&
d459 12
a470 1
    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
d496 7
d517 1
a517 1
          $doit $rmcmd -f "$dst" 2>/dev/null ||
d519 1
a519 1
            { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
@


1.1.1.12
log
@initial import of revert to pixman-0.38.4.

see arm64 neon issues, and other issues (eg, PR#57108)
@
text
@d4 1
a4 1
scriptversion=2018-03-11.20; # UTC
d72 5
d107 1
a107 1
  -C            install only if different (preserve the last data modification time)
d112 1
d114 1
d121 8
d155 2
d159 3
d278 4
a327 16
        # Create intermediate dirs using mode 755 as modified by the umask.
        # This is like FreeBSD 'install' as of 1997-10-28.
        umask=`umask`
        case $stripcmd.$umask in
          # Optimize common cases.
          *[2367][2367]) mkdir_umask=$umask;;
          .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;

          *[0-7])
            mkdir_umask=`expr $umask + 22 \
              - $umask % 100 % 40 + $umask % 20 \
              - $umask % 10 % 4 + $umask % 2
            `;;
          *) mkdir_umask=$umask,go-w;;
        esac

d337 43
a379 46
        case $umask in
          *[123567][0-7][0-7])
            # POSIX mkdir -p sets u+wx bits regardless of umask, which
            # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
            ;;
          *)
            # Note that $RANDOM variable is not portable (e.g. dash);  Use it
            # here however when possible just to lower collision chance.
            tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$

            trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0

            # Because "mkdir -p" follows existing symlinks and we likely work
            # directly in world-writeable /tmp, make sure that the '$tmpdir'
            # directory is successfully created first before we actually test
            # 'mkdir -p' feature.
            if (umask $mkdir_umask &&
                $mkdirprog $mkdir_mode "$tmpdir" &&
                exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
            then
              if test -z "$dir_arg" || {
                   # Check for POSIX incompatibilities with -m.
                   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
                   # other-writable bit of parent directory when it shouldn't.
                   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
                   test_tmpdir="$tmpdir/a"
                   ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
                   case $ls_ld_tmpdir in
                     d????-?r-*) different_mode=700;;
                     d????-?--*) different_mode=755;;
                     *) false;;
                   esac &&
                   $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
                     ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
                     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
                   }
                 }
              then posix_mkdir=:
              fi
              rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
            else
              # Remove any dirs left behind by ancient mkdir implementations.
              rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
            fi
            trap '' 0;;
        esac;;
d390 1
a390 1
      # The umask is ridiculous, or mkdir does not conform to POSIX,
d419 1
a419 1
            (umask=$mkdir_umask &&
d459 12
a470 1
    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
d496 7
d517 1
a517 1
          $doit $rmcmd -f "$dst" 2>/dev/null ||
d519 1
a519 1
            { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
@


