Lines Matching refs:DESTDIR

47 # if needed and then the changes are merged into DESTDIR.  Any files
148 if [ ${DESTDIR}$1 -ef ${DESTDIR}/root$1 ]; then
229 $make DESTDIR=$destdir installetc || exit 1
231 $make DESTDIR=$destdir distrib-dirs || exit 1
232 $make DESTDIR=$destdir distribution || exit 1
470 # $1 - pathname of the directory to check relative to DESTDIR.
475 dir_subset $DESTDIR/$1 $OLDTREE/$1
479 empty_dir $DESTDIR/$1
555 if [ -f ${DESTDIR}/etc/localtime -a \
556 ! -L ${DESTDIR}/etc/localtime ]; then
557 if [ -f ${DESTDIR}/var/db/zoneinfo ]; then
558 if [ -n "${DESTDIR}" ]; then
559 args="-C ${DESTDIR}"
598 # directory in the DESTDIR and the file in the DESTDIR
601 if [ -n "$dryrun" -a "$2" = "$DESTDIR" ]; then
602 if compare $OLDTREE/$dir $DESTDIR/$dir; then
632 # $1 - pathname of the updated file (relative to DESTDIR)
637 # Grr, newaliases only works for an empty DESTDIR.
638 if [ -z "$DESTDIR" ]; then
650 env DESTDIR=${DESTDIR} certctl rehash >&3 2>&1
654 log "cap_mkdb ${DESTDIR}$1"
656 cap_mkdb ${DESTDIR}$1 >&3 2>&1
660 log "pwd_mkdb -p -d $DESTDIR/etc ${DESTDIR}$1"
662 pwd_mkdb -p -d $DESTDIR/etc ${DESTDIR}$1 \
668 # Don't warn about non-empty DESTDIR's since this
670 if [ -z "$DESTDIR" ]; then
678 log "services_mkdb -q -o $DESTDIR/var/db/services.db" \
679 "${DESTDIR}$1"
681 services_mkdb -q -o $DESTDIR/var/db/services.db \
682 ${DESTDIR}$1 >&3 2>&1
691 # $1 - pathname of the file to install (relative to DESTDIR)
695 if ! install_dirs $NEWTREE "$DESTDIR" $1; then
698 log "cp -Rp ${NEWTREE}$1 ${DESTDIR}$1"
700 cp -Rp ${NEWTREE}$1 ${DESTDIR}$1 >&3 2>&1
709 # $1 - pathname of the file to install (relative to DESTDIR)
716 if ! install_dirs $NEWTREE "$DESTDIR" $1; then
721 log "cat ${CONFLICTS}$1 > ${DESTDIR}$1"
722 cat ${CONFLICTS}$1 > ${DESTDIR}$1 2>&3
728 # existing file in DESTDIR.
730 # $1 - pathname of the file that conflicts (relative to DESTDIR)
742 ' $DESTDIR/$1 $NEWTREE/$1 > $CONFLICTS/$1
747 # $1 - pathname of the old file to remove (relative to DESTDIR)
750 log "rm -f ${DESTDIR}$1"
752 rm -f ${DESTDIR}$1 >&3 2>&1
759 # $1 - pathname of the file to update (relative to DESTDIR)
769 if [ -d $DESTDIR/$1 ]; then
771 log "rmdir ${DESTDIR}$1"
773 rmdir ${DESTDIR}$1 >&3 2>&1
782 elif ! [ -f ${DESTDIR}$1 -a -f ${NEWTREE}$1 ]; then
783 log "rm -f ${DESTDIR}$1"
785 rm -f ${DESTDIR}$1 >&3 2>&1
808 # $1 - pathname of the file to update (relative to DESTDIR)
819 dest=`grep -c '\$FreeBSD.*\$' ${DESTDIR}$1`
830 dest=`grep '\$FreeBSD.*\$' ${DESTDIR}$1`
841 awk '/\$FreeBSD.*\$/ { exit } { print }' ${DESTDIR}$1 >> $file
844 ${DESTDIR}$1 >> $file
849 if ! fbsdid_only ${DESTDIR}$1 $file; then
854 log "cp $file ${DESTDIR}$1"
856 cp $file ${DESTDIR}$1 >&3 2>&1
869 # $1 - pathname of the file to merge (relative to DESTDIR)
875 diff3 -E -m ${DESTDIR}$1 ${OLDTREE}$1 ${NEWTREE}$1 > /dev/null 2>&3
881 log "diff3 -E -m ${DESTDIR}$1 ${OLDTREE}$1 ${NEWTREE}$1"
884 diff3 -E -m ${DESTDIR}$1 ${OLDTREE}$1 ${NEWTREE}$1 > ${temp}
886 cat ${temp} > ${DESTDIR}$1
897 log "diff3 -m ${DESTDIR}$1 ${CONFLICTS}$1"
899 ${DESTDIR}$1 ${OLDTREE}$1 ${NEWTREE}$1 > \
912 # $1 - pathname of the file to resolve (relative to DESTDIR)
926 # $1 - pathname of the file to resolve (relative to DESTDIR)
945 diff -u ${DESTDIR}$1 ${CONFLICTS}$1
1009 # does not exist in DESTDIR, then there is nothing to do. If the file
1010 # exists in DESTDIR and is identical to the old version, remove it
1011 # from DESTDIR. Otherwise, whine about the conflict but leave the
1012 # file in DESTDIR. To handle directories, this uses two passes. The
1016 # If -F is specified, and the only difference in the file in DESTDIR
1019 # $1 - pathname of the file (relative to DESTDIR)
1030 compare_fbsdid $DESTDIR/$file $OLDTREE/$file
1033 if ! [ -d $DESTDIR/$file ]; then
1044 dest=`file_type $DESTDIR/$file`
1053 # $1 - pathname of the directory (relative to DESTDIR)
1064 if [ -d $DESTDIR/$dir -a -d $OLDTREE/$dir ]; then
1066 log "rmdir ${DESTDIR}$dir"
1068 rmdir ${DESTDIR}$dir >/dev/null 2>&1
1085 # $1 - pathname of the file (relative to DESTDIR)
1106 compare $NEWTREE/$file $DESTDIR/$file
1116 fbsdid_only $NEWTREE/$file $DESTDIR/$file; then
1127 if compare_fbsdid $OLDTREE/$file $DESTDIR/$file; then
1203 dest=`readlink $DESTDIR/$file`
1217 # DESTDIR, then just warn.
1220 dest=`file_type $DESTDIR/$file`
1230 dest=`file_type $DESTDIR/$file`
1246 # not exist in DESTDIR, simply copy the file into DESTDIR. If the
1247 # file exists in the DESTDIR and is identical to the new version, do
1251 # $1 - pathname of the file (relative to DESTDIR)
1262 compare $DESTDIR/$file $NEWTREE/$file
1299 dest=`file_type $DESTDIR/$file`
1304 dest=`readlink $DESTDIR/$file`
1313 fbsdid_only $NEWTREE/$file $DESTDIR/$file; then
1367 # Output a diff comparing the tree at DESTDIR to the current
1369 # are present in DESTDIR but not in the unmodified tree.
1391 diffnode $NEWTREE "$DESTDIR" $file "stock" "local"
1490 compare $DESTDIR/$file $NEWTREE/$file
1751 DESTDIR=
1772 # - DESTDIR
1832 DESTDIR=$OPTARG
1880 WORKDIR=${WORKDIR:-$DESTDIR/var/db/etcupdate}