head	1.1;
branch	1.1.1;
access;
symbols
	jemalloc-5-4-0:1.1.1.2
	netbsd-10-2-RELEASE:1.1.1.1
	netbsd-9-5-RELEASE:1.1.1.1
	netbsd-11-0-RELEASE:1.1.1.1
	netbsd-11-0-RC7:1.1.1.1
	netbsd-11-0-RC6:1.1.1.1
	netbsd-11-0-RC5:1.1.1.1
	netbsd-11-0-RC4:1.1.1.1
	jemailoc-5-3-1:1.1.1.2
	netbsd-11-0-RC3:1.1.1.1
	netbsd-11-0-RC2:1.1.1.1
	netbsd-11-0-RC1:1.1.1.1
	perseant-exfatfs-base-20250801:1.1.1.1
	netbsd-11:1.1.1.1.0.16
	netbsd-11-base:1.1.1.1
	netbsd-10-1-RELEASE:1.1.1.1
	jemalloc-5-3-0:1.1.1.1
	perseant-exfatfs-base-20240630:1.1.1.1
	perseant-exfatfs:1.1.1.1.0.14
	perseant-exfatfs-base:1.1.1.1
	netbsd-9-4-RELEASE:1.1.1.1
	netbsd-10-0-RELEASE:1.1.1.1
	netbsd-10-0-RC6:1.1.1.1
	netbsd-10-0-RC5:1.1.1.1
	netbsd-10-0-RC4:1.1.1.1
	netbsd-10-0-RC3:1.1.1.1
	netbsd-10-0-RC2:1.1.1.1
	netbsd-10-0-RC1:1.1.1.1
	netbsd-10:1.1.1.1.0.12
	netbsd-10-base:1.1.1.1
	netbsd-9-3-RELEASE:1.1.1.1
	cjep_sun2x-base1:1.1.1.1
	cjep_sun2x:1.1.1.1.0.10
	cjep_sun2x-base:1.1.1.1
	cjep_staticlib_x-base1:1.1.1.1
	netbsd-9-2-RELEASE:1.1.1.1
	cjep_staticlib_x:1.1.1.1.0.8
	cjep_staticlib_x-base:1.1.1.1
	netbsd-9-1-RELEASE:1.1.1.1
	phil-wifi-20200421:1.1.1.1
	phil-wifi-20200411:1.1.1.1
	is-mlppp:1.1.1.1.0.6
	is-mlppp-base:1.1.1.1
	phil-wifi-20200406:1.1.1.1
	netbsd-9-0-RELEASE:1.1.1.1
	netbsd-9-0-RC2:1.1.1.1
	netbsd-9-0-RC1:1.1.1.1
	phil-wifi-20191119:1.1.1.1
	netbsd-9:1.1.1.1.0.4
	netbsd-9-base:1.1.1.1
	phil-wifi:1.1.1.1.0.2
	phil-wifi-20190609:1.1.1.1
	jemalloc-5-1-0:1.1.1.1
	JASONE:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2019.03.04.17.10.22;	author christos;	state Exp;
branches
	1.1.1.1;
next	;
commitid	nOvZu7WcBJUVq4eB;

1.1.1.1
date	2019.03.04.17.10.22;	author christos;	state Exp;
branches
	1.1.1.1.2.1;
next	1.1.1.2;
commitid	nOvZu7WcBJUVq4eB;

1.1.1.2
date	2026.04.19.16.20.48;	author christos;	state Exp;
branches;
next	;
commitid	otienUsF45k2uACG;

1.1.1.1.2.1
date	2019.03.04.17.10.22;	author christos;	state dead;
branches;
next	1.1.1.1.2.2;
commitid	jtc8rnCzWiEEHGqB;

1.1.1.1.2.2
date	2019.06.10.21.44.51;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;


desc
@@


1.1
log
@Initial revision
@
text
@#! /bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission.  M.I.T. makes no representations about the
# suitability of this software for any purpose.  It is provided "as is"
# without express or implied warranty.
#
# 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.  It can only install one file at a time, a restriction
# shared with many OS's install programs.


# set DOITPROG to echo to test this script

# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"


# put in absolute paths if you don't have them in your path; or use env. 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}"

transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""

while [ x"$1" != x ]; do
    case $1 in
	-c) instcmd="$cpprog"
	    shift
	    continue;;

	-d) dir_arg=true
	    shift
	    continue;;

	-m) chmodcmd="$chmodprog $2"
	    shift
	    shift
	    continue;;

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

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

	-s) stripcmd="$stripprog"
	    shift
	    continue;;

	-t=*) transformarg=`echo $1 | sed 's/-t=//'`
	    shift
	    continue;;

	-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
	    shift
	    continue;;

	*)  if [ x"$src" = x ]
	    then
		src=$1
	    else
		# this colon is to work around a 386BSD /bin/sh bug
		:
		dst=$1
	    fi
	    shift
	    continue;;
    esac
done

if [ x"$src" = x ]
then
	echo "install:	no input file specified"
	exit 1
else
	true
fi

if [ x"$dir_arg" != x ]; then
	dst=$src
	src=""
	
	if [ -d $dst ]; then
		instcmd=:
	else
		instcmd=mkdir
	fi
else

# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad 
# if $src (and thus $dsttmp) contains '*'.

	if [ -f $src -o -d $src ]
	then
		true
	else
		echo "install:  $src does not exist"
		exit 1
	fi
	
	if [ x"$dst" = x ]
	then
		echo "install:	no destination specified"
		exit 1
	else
		true
	fi

# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic

	if [ -d $dst ]
	then
		dst="$dst"/`basename $src`
	else
		true
	fi
fi

## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`

# Make sure that the destination directory exists.
#  this part is taken from Noah Friedman's mkinstalldirs script

# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='	
'
IFS="${IFS-${defaultIFS}}"

oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@@/@@%@@g' -e 's@@^%@@/@@'`
IFS="${oIFS}"

pathcomp=''

while [ $# -ne 0 ] ; do
	pathcomp="${pathcomp}${1}"
	shift

	if [ ! -d "${pathcomp}" ] ;
        then
		$mkdirprog "${pathcomp}"
	else
		true
	fi

	pathcomp="${pathcomp}/"
done
fi

if [ x"$dir_arg" != x ]
then
	$doit $instcmd $dst &&

	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else

# If we're going to rename the final executable, determine the name now.

	if [ x"$transformarg" = x ] 
	then
		dstfile=`basename $dst`
	else
		dstfile=`basename $dst $transformbasename | 
			sed $transformarg`$transformbasename
	fi

# don't allow the sed command to completely eliminate the filename

	if [ x"$dstfile" = x ] 
	then
		dstfile=`basename $dst`
	else
		true
	fi

# Make a temp file name in the proper directory.

	dsttmp=$dstdir/#inst.$$#

# Move or copy the file name to the temp name

	$doit $instcmd $src $dsttmp &&

	trap "rm -f ${dsttmp}" 0 &&

# 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 $instcmd $src $dsttmp" command.

	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&

# Now rename the file to the real destination.

	$doit $rmcmd -f $dstdir/$dstfile &&
	$doit $mvcmd $dsttmp $dstdir/$dstfile 

fi &&


exit 0
@


1.1.1.1
log
@import jemalloc-5.1.0
@
text
@@


1.1.1.2
log
@Import jemalloc-5.3.1 (previous was 5.3.0)

This release includes over 390 commits spanning bug fixes, new features,
performance optimizations, and portability improvements. Multiple percent
of system-level metric improvements were measured in tested production
workloads. The release has gone through large-scale production testing
at Meta.

New features:

Support pvalloc. (@@Lapenkov: 5b1f2cc)
Add double free detection for the debug build. (@@izaitsevfb:
36366f3, @@guangli-dai: 42daa1a, @@divanorama: 1897f18)
Add compile-time option --enable-pageid to enable memory mapping
annotation. (@@devnexen: 4fc5c4f)
Add runtime option prof_bt_max to control the max stack depth for
profiling. (@@guangli-dai: a0734fd)
Add compile-time option --enable-force-getenv to use getenv instead
of secure_getenv. (@@interwq: 481bbfc)
Add compile-time option --disable-dss to disable the usage of
sbrk(2). (@@Svetlitski: ea5b7be)
Add runtime option tcache_ncached_max to control the number of items
in each size bin in the thread cache. (@@guangli-dai: 8a22d10)
Add runtime option calloc_madvise_threshold to determine if kernel or
memset is used to zero the allocations for calloc. (@@nullptr0-0:
5081c16)
Add compile-time option --disable-user-config to disable reading the
runtime configurations from /etc/malloc.conf or environment variable
MALLOC_CONF. (@@roblabla: c17bf8b)
Add runtime option disable_large_size_classes to guard the new usable
size calculation, which minimizes the memory overhead for large
allocations, i.e., >= 4 * PAGE. (@@guangli-dai: c067a55, 8347f10)
Enable process_madvise usage, add runtime option
process_madvise_max_batch to control the max # of regions in each
madvise batch. (@@interwq: 22440a0, @@spredolac: 4246475)
Add mallctl interfaces:
opt.prof_bt_max (@@guangli-dai: a0734fd)
arena.<i>.name to set and get arena names. (@@guangli-dai: ba19d2c)
thread.tcache.max to set and get the tcache_max of the current
thread. (@@guangli-dai: a442d9b)
thread.tcache.ncached_max.write and
thread.tcache.ncached_max.read_sizeclass to set and get the
ncached_max setup of the current thread. (@@guangli-dai: 630f7de,
6b197fd)
arenas.hugepage to return the hugepage size used, also exported to
malloc stats. (@@ilvokhin: 90c627e)
approximate_stats.active to return an estimate of the current active
bytes, which should not be compared with other stats retrieved.
(@@guangli-dai: 0988583)
Bug fixes:

Prevent potential deadlocks in decaying during reentrancy. (@@interwq:
434a68e)
Fix segfault in extent coalescing. (@@Svetlitski: 12311fe)
Add null pointer detections in mallctl calls. (@@Svetlitski: dc0a184,
0288126)
Make mallctl arenas.lookup triable without crashing on invalid
pointers. (@@auxten: 019cccc, 5bac384)
Demote sampled allocations for proper deallocations during
arena_reset. (@@Svetlitski: 62648c8)
Fix jemalloc's read(2) and write(2). (@@Svetlitski: d2c9ed3, @@lexprfuncall:
9fdc116)
Fix the pkg-config metadata file. (@@BtbN: ed7e6fe, ce8ce99)
Fix the autogen.sh so that it accepts quoted extra options.
(@@honggyukim: f6fe6ab)
Fix rallocx() to set errno to ENOMEM upon OOMing. (@@arter97: 38056fe,
@@interwq: 83b0757)
Avoid stack overflow for internal variable array usage. (@@nullptr0-0:
47c9bcd, 48f66cf, @@xinydev: 9169e92)
Fix background thread initialization race. (@@puzpuzpuz: 4d0ffa0)
Guard os_page_id against a NULL address. (@@lexprfuncall: 79cc7dc)
Handle tcache init failures gracefully. (@@lexprfuncall: a056c20)
Fix missing release of acquired neighbor edata in
extent_try_coalesce_impl. (@@spredolac: 675ab07)
Fix memory leak of old curr_reg on san_bump_grow_locked failure.
(@@spredolac: 5904a42)
Fix large alloc nrequests under-counting on cache misses. (@@spredolac:
3cc56d3)
Portability improvements:

Fix the build in C99. (@@abaelhe: 56ddbea)
Add pthread_setaffinity_np detection for non Linux/BSD platforms.
(@@devnexen: 4c95c95)
Make VARIABLE_ARRAY compatible with compilers not supporting VLA,
i.e., Visual Studio C compiler in C11 or C17 modes. (@@madscientist:
be65438)
Fix the build on Linux using musl library. (@@marv: aba1645, 45249cf)
Reduce the memory overhead in small allocation sampling for systems
with larger page sizes, e.g., ARM. (@@Svetlitski: 5a858c6)
Add C23's free_sized and free_aligned_sized. (@@Svetlitski:
cdb2c0e)
Enable heap profiling on MacOS. (@@nullptr0-0: 4b555c1)
Fix incorrect printing on 32bit. (@@sundb: 630434b)
Make JEMALLOC_CXX_THROW compatible with C++ versions newer than
C++17. (@@r-barnes, @@guangli-dai: 21bcc0a)
Fix mmap tag conflicts on MacOS. (@@kdrag0n: c893fcd)
Fix monotonic timer assumption for win32. (@@burtonli: 8dc97b1)
Fix VM over-reservation on systems with larger pages, e.g., aarch64.
(@@interwq: cd05b19)
Remove unreachable() macro conditionally to prevent definition
conflicts for C23+. (@@appujee: d8486b2, 4b88bdd)
Fix dlsym failure observed on FreeBSD. (@@rhelmot: 86bbaba)
Change the default page size to 64KB on aarch64 Linux. (@@lexprfuncall:
9442300)
Update config.guess and config.sub to the latest version.
(@@lexprfuncall: c51949e)
Determine the page size on Android from NDK header files.
(@@lexprfuncall: c51abba)
Improve the portability of grep patterns in configure.ac.
(@@lexprfuncall: 365747b)
Add compile-time option --with-cxx-stdlib to specify the C++ standard
library. (@@yuxuanchen1997: a10ef3e)
Optimizations and refactors:

Enable tcache for deallocation-only threads. (@@interwq: 143e9c4)
Inline to accelerate operator delete. (@@guangli-dai: e8f9f13)
Optimize pairing heap's performance. (@@deadalnix: 5266152, be6da4f,
543e2d6, 10d7131, 92aa52c, @@Svetlitski: 36ca0c1)
Inline the storage for thread name in the profiling data. (@@interwq:
ce0b7ab, e62aa47)
Optimize a hot function edata_cmp_summary_comp to accelerate it.
(@@Svetlitski: 6841110, @@guangli-dai: 0181aaa)
Allocate thread cache using the base allocator, which enables thread
cache to use thp when metadata_thp is turned on. (@@interwq:
72cfdce)
Allow oversize arena not to purge immediately when background threads
are enabled, although the default decay time is 0 to be back compatible.
(@@interwq: d131331)
Optimize thread-local storage implementation on Windows. (@@mcfi:
9e123a8, 3a0d9cd)
Optimize fast path to allow static size class computation. (@@interwq:
323ed2e)
Redesign tcache GC to regulate the frequency and make it
locality-aware. The new design is default on, guarded by option
experimental_tcache_gc. (@@nullptr0-0: 0c88be9, e2c9f3a,
14d5dc1, @@deadalnix: 5afff2e)
Reduce the arena switching overhead by avoiding forced purging when
background thread is enabled. (@@interwq: a3910b9)
Improve the reuse efficiency by limiting the maximum coalesced size for
large extents. (@@jiebinn: 3c14707)
Refactor thread events to allow registration of users' thread events
and remove prof_threshold as the built-in event. (@@spredolac: e6864c6,
015b017, 34ace91)
Documentation:

Update Windows building instructions. (@@Lapenkov: 3713932)
Add vcpkg installation instructions. (@@LilyWangLL: c0c9783)
Update profiling internals with an example. (@@jordalgo: b04e766)
@
text
@d118 1
a118 1

d127 1
a127 1
# might cause directories to be created, which would be especially bad
d137 1
a137 1

d204 1
a204 1
	if [ x"$transformarg" = x ]
d208 1
a208 1
		dstfile=`basename $dst $transformbasename |
d214 1
a214 1
	if [ x"$dstfile" = x ]
d245 1
a245 1
	$doit $mvcmd $dsttmp $dstdir/$dstfile
@


1.1.1.1.2.1
log
@file install-sh was added on branch phil-wifi on 2019-06-10 21:44:51 +0000
@
text
@d1 250
@


1.1.1.1.2.2
log
@Sync with HEAD
@
text
@a0 250
#! /bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission.  M.I.T. makes no representations about the
# suitability of this software for any purpose.  It is provided "as is"
# without express or implied warranty.
#
# 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.  It can only install one file at a time, a restriction
# shared with many OS's install programs.


# set DOITPROG to echo to test this script

# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"


# put in absolute paths if you don't have them in your path; or use env. 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}"

transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""

while [ x"$1" != x ]; do
    case $1 in
	-c) instcmd="$cpprog"
	    shift
	    continue;;

	-d) dir_arg=true
	    shift
	    continue;;

	-m) chmodcmd="$chmodprog $2"
	    shift
	    shift
	    continue;;

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

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

	-s) stripcmd="$stripprog"
	    shift
	    continue;;

	-t=*) transformarg=`echo $1 | sed 's/-t=//'`
	    shift
	    continue;;

	-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
	    shift
	    continue;;

	*)  if [ x"$src" = x ]
	    then
		src=$1
	    else
		# this colon is to work around a 386BSD /bin/sh bug
		:
		dst=$1
	    fi
	    shift
	    continue;;
    esac
done

if [ x"$src" = x ]
then
	echo "install:	no input file specified"
	exit 1
else
	true
fi

if [ x"$dir_arg" != x ]; then
	dst=$src
	src=""
	
	if [ -d $dst ]; then
		instcmd=:
	else
		instcmd=mkdir
	fi
else

# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad 
# if $src (and thus $dsttmp) contains '*'.

	if [ -f $src -o -d $src ]
	then
		true
	else
		echo "install:  $src does not exist"
		exit 1
	fi
	
	if [ x"$dst" = x ]
	then
		echo "install:	no destination specified"
		exit 1
	else
		true
	fi

# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic

	if [ -d $dst ]
	then
		dst="$dst"/`basename $src`
	else
		true
	fi
fi

## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`

# Make sure that the destination directory exists.
#  this part is taken from Noah Friedman's mkinstalldirs script

# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='	
'
IFS="${IFS-${defaultIFS}}"

oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@@/@@%@@g' -e 's@@^%@@/@@'`
IFS="${oIFS}"

pathcomp=''

while [ $# -ne 0 ] ; do
	pathcomp="${pathcomp}${1}"
	shift

	if [ ! -d "${pathcomp}" ] ;
        then
		$mkdirprog "${pathcomp}"
	else
		true
	fi

	pathcomp="${pathcomp}/"
done
fi

if [ x"$dir_arg" != x ]
then
	$doit $instcmd $dst &&

	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else

# If we're going to rename the final executable, determine the name now.

	if [ x"$transformarg" = x ] 
	then
		dstfile=`basename $dst`
	else
		dstfile=`basename $dst $transformbasename | 
			sed $transformarg`$transformbasename
	fi

# don't allow the sed command to completely eliminate the filename

	if [ x"$dstfile" = x ] 
	then
		dstfile=`basename $dst`
	else
		true
	fi

# Make a temp file name in the proper directory.

	dsttmp=$dstdir/#inst.$$#

# Move or copy the file name to the temp name

	$doit $instcmd $src $dsttmp &&

	trap "rm -f ${dsttmp}" 0 &&

# 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 $instcmd $src $dsttmp" command.

	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&

# Now rename the file to the real destination.

	$doit $rmcmd -f $dstdir/$dstfile &&
	$doit $mvcmd $dsttmp $dstdir/$dstfile 

fi &&


exit 0
@


