5 # Compare files created by /usr/src/etc/Makefile (or the directory
6 # the user specifies) with the currently installed copies.
8 # Copyright 1998-2002 Douglas Barton
13 PATH=/bin:/usr/bin:/usr/sbin
16 VERSION_NUMBER=`grep "[$]FreeBSD:" $0 | cut -d ' ' -f 4`
17 echo "mergemaster version ${VERSION_NUMBER}"
18 echo 'Usage: mergemaster [-scrvahipC] [-m /path]'
19 echo ' [-t /path] [-d] [-u N] [-w N] [-D /path]'
21 echo " -s Strict comparison (diff every pair of files)"
22 echo " -c Use context diff instead of unified diff"
23 echo " -r Re-run on a previously cleaned directory (skip temproot creation)"
24 echo " -v Be more verbose about the process, include additional checks"
25 echo " -a Leave all files that differ to merge by hand"
26 echo " -h Display more complete help"
27 echo ' -i Automatically install files that do not exist in destination directory'
28 echo ' -p Pre-buildworld mode, only compares crucial files'
29 echo ' -C Compare local rc.conf variables to the defaults'
30 echo " -m /path/directory Specify location of source to do the make in"
31 echo " -t /path/directory Specify temp root directory"
32 echo " -d Add date and time to directory name (e.g., /var/tmp/temproot.`date +%m%d.%H.%M`)"
33 echo " -u N Specify a numeric umask"
34 echo " -w N Specify a screen width in columns to sdiff"
35 echo ' -D /path/directory Specify the destination directory to install files to'
40 echo "* To specify a directory other than /var/tmp/temproot for the"
41 echo " temporary root environment, use -t /path/to/temp/root"
42 echo "* The -w option takes a number as an argument for the column width"
43 echo " of the screen. The default is 80."
44 echo '* The -a option causes mergemaster to run without prompting.'
47 # Loop allowing the user to use sdiff to merge files and display the merged
53 echo " *** Type h at the sdiff prompt (%) to get usage help"
58 while [ "${MERGE_AGAIN}" = "yes" ]; do
59 # Prime file.merged so we don't blat the owner/group id's
60 cp -p "${COMPFILE}" "${COMPFILE}.merged"
61 sdiff -o "${COMPFILE}.merged" --text --suppress-common-lines \
62 --width=${SCREEN_WIDTH:-80} "${DESTDIR}${COMPFILE#.}" "${COMPFILE}"
64 while [ "${INSTALL_MERGED}" = "v" -o "${INSTALL_MERGED}" = "V" ]; do
66 echo " Use 'i' to install merged file"
67 echo " Use 'r' to re-do the merge"
68 echo " Use 'v' to view the merged file"
69 echo " Default is to leave the temporary file to deal with by hand"
71 echo -n " *** How should I deal with the merged file? [Leave it for later] "
74 case "${INSTALL_MERGED}" in
76 mv "${COMPFILE}.merged" "${COMPFILE}"
78 if mm_install "${COMPFILE}"; then
79 echo " *** Merged version of ${COMPFILE} installed successfully"
81 echo " *** Problem installing ${COMPFILE}, it will remain to merge by hand later"
86 rm "${COMPFILE}.merged"
89 ${PAGER} "${COMPFILE}.merged"
92 echo " *** ${COMPFILE} will remain for your consideration"
96 echo "invalid choice: ${INSTALL_MERGED}"
104 # Loop showing user differences between files, allow merge, skip or install
110 while [ "${HANDLE_COMPFILE}" = "v" -o "${HANDLE_COMPFILE}" = "V" -o \
111 "${HANDLE_COMPFILE}" = "NOT V" ]; do
112 if [ -f "${DESTDIR}${COMPFILE#.}" -a -f "${COMPFILE}" ]; then
113 if [ "${HANDLE_COMPFILE}" = "v" -o "${HANDLE_COMPFILE}" = "V" ]; then
115 echo ' ====================================================================== '
119 echo " *** Displaying differences between ${COMPFILE} and installed version:"
121 diff "${DIFF_FLAG}" "${DESTDIR}${COMPFILE#.}" "${COMPFILE}"
127 echo " *** There is no installed version of ${COMPFILE}"
129 case "${AUTO_INSTALL}" in
132 if mm_install "${COMPFILE}"; then
133 echo " *** ${COMPFILE} installed successfully"
135 # Make the list print one file per line
136 AUTO_INSTALLED_FILES="${AUTO_INSTALLED_FILES} ${DESTDIR}${COMPFILE#.}
139 echo " *** Problem installing ${COMPFILE}, it will remain to merge by hand"
149 echo " Use 'd' to delete the temporary ${COMPFILE}"
150 echo " Use 'i' to install the temporary ${COMPFILE}"
151 case "${NO_INSTALLED}" in
153 echo " Use 'm' to merge the temporary and installed versions"
154 echo " Use 'v' to view the diff results again"
158 echo " Default is to leave the temporary file to deal with by hand"
160 echo -n "How should I deal with this? [Leave it for later] "
163 case "${HANDLE_COMPFILE}" in
167 echo " *** Deleting ${COMPFILE}"
171 if mm_install "${COMPFILE}"; then
172 echo " *** ${COMPFILE} installed successfully"
174 echo " *** Problem installing ${COMPFILE}, it will remain to merge by hand"
178 case "${NO_INSTALLED}" in
180 # interact with user to merge files
185 echo " *** There is no installed version of ${COMPFILE}"
187 HANDLE_COMPFILE="NOT V"
189 esac # End of "No installed version of file but user selected merge" test
196 echo " *** ${COMPFILE} will remain for your consideration"
199 # invalid choice, show menu again.
200 echo "invalid choice: ${HANDLE_COMPFILE}"
202 HANDLE_COMPFILE="NOT V"
205 esac # End of "How to handle files that are different"
217 press_to_continue () {
219 echo -n ' *** Press the [Enter] or [Return] key to continue '
223 # Set the default path for the temporary root environment
225 TEMPROOT='/var/tmp/temproot'
227 # Read /etc/mergemaster.rc first so the one in $HOME can override
229 if [ -r /etc/mergemaster.rc ]; then
230 . /etc/mergemaster.rc
233 # Read .mergemasterrc before command line so CLI can override
235 if [ -r "$HOME/.mergemasterrc" ]; then
236 . "$HOME/.mergemasterrc"
239 # Check the command line options
241 while getopts ":ascrvhipCm:t:du:w:D:" COMMAND_LINE_ARGUMENT ; do
242 case "${COMMAND_LINE_ARGUMENT}" in
253 case "${AUTO_RUN}" in
284 TEMPROOT=${TEMPROOT}.`date +%m%d.%H.%M`
290 SCREEN_WIDTH=${OPTARG}
304 # If the user has a pager defined, make sure we can run it
306 case "${DONT_CHECK_PAGER}" in
308 while ! type "${PAGER%% *}" >/dev/null && [ -n "${PAGER}" ]; do
309 echo " *** Your PAGER environment variable specifies '${PAGER}', but"
310 echo " due to the limited PATH that I use for security reasons,"
311 echo " I cannot execute it. So, what would you like to do?"
313 echo " Use 'e' to exit mergemaster and fix your PAGER variable"
314 if [ -x /usr/bin/less -o -x /usr/local/bin/less ]; then
315 echo " Use 'l' to set PAGER to 'less' for this run"
317 echo " Use 'm' to use plain old 'more' as your PAGER for this run"
319 echo " Default is to use plain old 'more' "
321 echo -n "What should I do? [Use 'more'] "
324 case "${FIXPAGER}" in
329 if [ -x /usr/bin/less ]; then
331 elif [ -x /usr/local/bin/less ]; then
332 PAGER=/usr/local/bin/less
335 echo " *** Fatal Error:"
336 echo " You asked to use 'less' as your pager, but I can't"
337 echo " find it in /usr/bin or /usr/local/bin"
346 echo "invalid choice: ${FIXPAGER}"
353 # If user has a pager defined, or got assigned one above, use it.
358 if [ -n "${VERBOSE}" -a ! "${PAGER}" = "more" ]; then
359 echo " *** You have ${PAGER} defined as your pager so we will use that"
364 # Assign the diff flag once so we will not have to keep testing it
366 DIFF_FLAG=${DIFF_FLAG:--u}
368 # Assign the source directory
370 SOURCEDIR=${SOURCEDIR:-/usr/src/etc}
372 # Check the width of the user's terminal
375 w=$(stty -a | sed -ne 's/.* \([0-9][0-9]*\) columns.*/\1/p')
377 0|'') ;; # No-op, since the input is not valid
379 case "${SCREEN_WIDTH}" in
380 '') SCREEN_WIDTH="${w}" ;;
381 "${w}") ;; # No-op, since they are the same
383 echo -n "*** You entered ${SCREEN_WIDTH} as your screen width, but stty "
384 echo "thinks it is ${w}."
386 echo -n "What would you like to use? [${w}] "
388 case "${SCREEN_WIDTH}" in
389 '') SCREEN_WIDTH="${w}" ;;
396 # Define what CVS $Id tag to look for to aid portability.
402 # Set up the loop to test for the existence of the
403 # temp root directory.
406 while [ "${TEST_TEMP_ROOT}" = "yes" ]; do
407 if [ -d "${TEMPROOT}" ]; then
408 echo "*** The directory specified for the temporary root environment,"
409 echo " ${TEMPROOT}, exists. This can be a security risk if untrusted"
410 echo " users have access to the system."
412 case "${AUTO_RUN}" in
414 echo " Use 'd' to delete the old ${TEMPROOT} and continue"
415 echo " Use 't' to select a new temporary root directory"
416 echo " Use 'e' to exit mergemaster"
418 echo " Default is to use ${TEMPROOT} as is"
420 echo -n "How should I deal with this? [Use the existing ${TEMPROOT}] "
423 case "${DELORNOT}" in
426 echo " *** Deleting the old ${TEMPROOT}"
432 echo " *** Enter new directory name for temporary root environment"
440 echo " *** Leaving ${TEMPROOT} intact"
446 echo "invalid choice: ${DELORNOT}"
452 # If this is an auto-run, try a hopefully safe alternative then
454 TEMPROOT=/var/tmp/temproot.`date +%m%d.%H.%M.%S`
462 echo "*** Creating the temporary root environment in ${TEMPROOT}"
464 if mkdir -p "${TEMPROOT}"; then
465 echo " *** ${TEMPROOT} ready for use"
468 if [ ! -d "${TEMPROOT}" ]; then
470 echo " *** FATAL ERROR: Cannot create ${TEMPROOT}"
475 echo " *** Creating and populating directory structure in ${TEMPROOT}"
485 case "${PRE_WORLD}" in
491 make DESTDIR=${DESTDIR} distrib-dirs
494 make DESTDIR=${TEMPROOT} distrib-dirs &&
495 make MAKEOBJDIRPREFIX=${TEMPROOT}/usr/obj obj &&
496 make MAKEOBJDIRPREFIX=${TEMPROOT}/usr/obj DESTDIR=${TEMPROOT} \
497 -DNO_MAKEDEV_RUN distribution;} ||
499 echo " *** FATAL ERROR: Cannot 'cd' to ${SOURCEDIR} and install files to";
500 echo " the temproot environment";
505 # Only set up files that are crucial to {build|install}world
506 { mkdir -p ${TEMPROOT}/etc &&
507 cp -p ${SOURCEDIR}/master.passwd ${TEMPROOT}/etc &&
508 cp -p ${SOURCEDIR}/group ${TEMPROOT}/etc;} ||
510 echo ' *** FATAL ERROR: Cannot copy files to the temproot environment';
516 # Doing the inventory and removing files that we don't want to compare only
517 # makes sense if we are not doing a rerun, since we have no way of knowing
518 # what happened to the files during previous incarnations.
523 echo ' *** The following files exist only in the installed version of'
524 echo " ${DESTDIR}/etc. In the vast majority of cases these files"
525 echo ' are necessary parts of the system and should not be deleted.'
526 echo ' However because these files are not updated by this process you'
527 echo ' might want to verify their status before rebooting your system.'
530 diff -qr ${DESTDIR}/etc ${TEMPROOT}/etc | grep "^Only in /etc" | ${PAGER}
536 # Avoid comparing the motd if the user specifies it in .mergemasterrc
537 case "${IGNORE_MOTD}" in
539 *) rm -f ${TEMPROOT}/etc/motd
543 # Avoid trying to update MAKEDEV if /dev is on a devfs
544 if /sbin/sysctl vfs.devfs.generation > /dev/null 2>&1 ; then
545 rm -f ${TEMPROOT}/dev/MAKEDEV ${TEMPROOT}/dev/MAKEDEV.local
548 ;; # End of the "RERUN" test
551 # We really don't want to have to deal with these files, since
552 # master.passwd is the real file that should be compared, then
553 # the user should run pwd_mkdb if necessary.
555 rm -f ${TEMPROOT}/etc/spwd.db ${TEMPROOT}/etc/passwd ${TEMPROOT}/etc/pwd.db
557 # We only need to compare things like freebsd.cf once
558 find ${TEMPROOT}/usr/obj -type f -delete 2>/dev/null
560 # Get ready to start comparing files
562 # Check umask if not specified on the command line,
563 # and we are not doing an autorun
565 if [ -z "${NEW_UMASK}" -a -z "${AUTO_RUN}" ]; then
567 case "${USER_UMASK}" in
571 echo " *** Your umask is currently set to ${USER_UMASK}. By default, this script"
572 echo " installs all files with the same user, group and modes that"
573 echo " they are created with by ${SOURCEDIR}/Makefile, compared to"
574 echo " a umask of 022. This umask allows world read permission when"
575 echo " the file's default permissions have it."
577 echo " No world permissions can sometimes cause problems. A umask of"
578 echo " 022 will restore the default behavior, but is not mandatory."
579 echo " /etc/master.passwd is a special case. Its file permissions"
580 echo " will be 600 (rw-------) if installed."
582 echo -n "What umask should I use? [${USER_UMASK}] "
585 NEW_UMASK="${NEW_UMASK:-$USER_UMASK}"
591 CONFIRMED_UMASK=${NEW_UMASK:-0022}
593 # Warn users who still have ${DESTDIR}/etc/sysconfig
595 if [ -e "${DESTDIR}/etc/sysconfig" ]; then
597 echo " *** There is a sysconfig file on this system in ${DESTDIR}/etc/."
599 echo ' Starting with FreeBSD version 2.2.2 those settings moved from'
600 echo ' /etc/sysconfig to /etc/rc.conf. If you are upgrading an older'
601 echo ' system make sure that you transfer your settings by hand from'
602 echo ' sysconfig to rc.conf and install the rc.conf file. If you'
603 echo ' have already made this transition, you should consider'
604 echo ' renaming or deleting the sysconfig file.'
606 case "${AUTO_RUN}" in
608 echo -n "Continue with the merge process? [yes] "
611 case "${CONT_OR_NOT}" in
616 echo " *** Continuing"
625 # Use the umask/mode information to install the files
626 # Create directories as needed
628 do_install_and_rm () {
629 install -m "${1}" "${2}" "${3}" &&
633 # 4095 = "obase=10;ibase=8;07777" | bc
636 OCTAL=$(( ~$(echo "obase=10; ibase=8; ${CONFIRMED_UMASK}" | bc) & 4095 &
637 $(echo "obase=10; ibase=8; $(stat -f "%OMp%OLp" ${1})" | bc) ))
638 printf "%04o\n" ${OCTAL}
644 INSTALL_DIR=${INSTALL_DIR%/*}
646 case "${INSTALL_DIR}" in
652 if [ -n "${DESTDIR}${INSTALL_DIR}" -a ! -d "${DESTDIR}${INSTALL_DIR}" ]; then
653 DIR_MODE=`find_mode "${TEMPROOT}/${INSTALL_DIR}"`
654 install -d -o root -g wheel -m "${DIR_MODE}" "${DESTDIR}${INSTALL_DIR}"
657 FILE_MODE=`find_mode "${1}"`
659 if [ ! -x "${1}" ]; then
668 do_install_and_rm 600 "${1}" "${DESTDIR}${INSTALL_DIR}"
673 case "${AUTO_INSTALL}" in
675 case "${LINK_EXPLAINED}" in
677 echo " *** Historically BSD derived systems have had a"
678 echo " hard link from /.cshrc and /.profile to"
679 echo " their namesakes in /root. Please indicate"
680 echo " your preference below for bringing your"
681 echo " installed files up to date."
687 echo " Use 'd' to delete the temporary ${COMPFILE}"
688 echo " Use 'l' to delete the existing ${DESTDIR}${COMPFILE#.} and create the link"
690 echo " Default is to leave the temporary file to deal with by hand"
692 echo -n " How should I handle ${COMPFILE}? [Leave it to install later] "
695 *) # Part of AUTO_INSTALL
700 case "${HANDLE_LINK}" in
704 echo " *** Deleting ${COMPFILE}"
708 rm -f "${DESTDIR}${COMPFILE#.}"
709 if ln "${DESTDIR}/root/${COMPFILE##*/}" "${DESTDIR}${COMPFILE#.}"; then
710 echo " *** Link from ${DESTDIR}${COMPFILE#.} to ${DESTDIR}/root/${COMPFILE##*/} installed successfully"
713 echo " *** Error linking ${DESTDIR}${COMPFILE#.} to ${DESTDIR}/root/${COMPFILE##*/}, ${COMPFILE} will remain to install by hand"
717 echo " *** ${COMPFILE} will remain for your consideration"
724 case "${DONT_INSTALL}" in
726 do_install_and_rm "${FILE_MODE}" "${1}" "${DESTDIR}${INSTALL_DIR}"
732 else # File matched -x
738 do_install_and_rm "${FILE_MODE}" "${1}" "${DESTDIR}${INSTALL_DIR}"
744 echo "*** Beginning comparison"
749 if [ -r "${MM_PRE_COMPARE_SCRIPT}" ]; then
750 . "${MM_PRE_COMPARE_SCRIPT}"
753 # Using -size +0 avoids uselessly checking the empty log files created
754 # by ${SOURCEDIR}/Makefile and the device entries in ./dev, but does
755 # check the scripts in ./dev, as we'd like (assuming no devfs of course).
757 for COMPFILE in `find . -type f -size +0`; do
759 # First, check to see if the file exists in DESTDIR. If not, the
760 # diff_loop function knows how to handle it.
762 if [ ! -e "${DESTDIR}${COMPFILE#.}" ]; then
763 case "${AUTO_RUN}" in
768 case "${AUTO_INSTALL}" in
770 # If this is an auto run, make it official
771 echo " *** ${COMPFILE} will remain for your consideration"
784 # Compare CVS $Id's first so if the file hasn't been modified
785 # local changes will be ignored.
786 # If the files have the same $Id, delete the one in temproot so the
787 # user will have less to wade through if files are left to merge by hand.
789 CVSID1=`grep "[$]${CVS_ID_TAG}:" ${DESTDIR}${COMPFILE#.} 2>/dev/null`
790 CVSID2=`grep "[$]${CVS_ID_TAG}:" ${COMPFILE} 2>/dev/null` || CVSID2=none
794 echo " *** Temp ${COMPFILE} and installed have the same CVS Id, deleting"
801 # If the file is still here either because the $Ids are different, the
802 # file doesn't have an $Id, or we're using STRICT mode; look at the diff.
804 if [ -f "${COMPFILE}" ]; then
806 # Do an absolute diff first to see if the files are actually different.
807 # If they're not different, delete the one in temproot.
809 if diff -q "${DESTDIR}${COMPFILE#.}" "${COMPFILE}" > /dev/null 2>&1; then
810 echo " *** Temp ${COMPFILE} and installed are the same, deleting"
813 # Ok, the files are different, so show the user where they differ.
814 # Use user's choice of diff methods; and user's pager if they have one.
816 # Use unified diffs by default. Context diffs give me a headache. :)
818 case "${AUTO_RUN}" in
820 # prompt user to install/delete/merge changes
824 # If this is an auto run, make it official
825 echo " *** ${COMPFILE} will remain for your consideration"
828 fi # Yes, the files are different
829 fi # Yes, the file still remains to be checked
830 done # This is for the do way up there at the beginning of the comparison
833 echo "*** Comparison complete"
836 TEST_FOR_FILES=`find ${TEMPROOT} -type f -size +0 2>/dev/null`
837 if [ -n "${TEST_FOR_FILES}" ]; then
838 echo "*** Files that remain for you to merge by hand:"
839 find "${TEMPROOT}" -type f -size +0
843 case "${AUTO_RUN}" in
845 echo -n "Do you wish to delete what is left of ${TEMPROOT}? [no] "
848 case "${DEL_TEMPROOT}" in
850 if rm -rf "${TEMPROOT}"; then
851 echo " *** ${TEMPROOT} has been deleted"
853 echo " *** Unable to delete ${TEMPROOT}"
857 echo " *** ${TEMPROOT} will remain"
864 case "${AUTO_INSTALLED_FILES}" in
867 case "${AUTO_RUN}" in
871 echo '*** You chose the automatic install option for files that did not'
872 echo ' exist on your system. The following were installed for you:'
873 echo "${AUTO_INSTALLED_FILES}"
878 echo '*** You chose the automatic install option for files that did not'
879 echo ' exist on your system. The following were installed for you:'
880 echo "${AUTO_INSTALLED_FILES}"
887 case "${AUTO_RUN}" in
891 echo -n ' Would you like to run it now? y or n [n] '
894 case "${YES_OR_NO}" in
902 echo " *** Cancelled"
904 echo " Make sure to run ${1} yourself"
908 echo " *** Sorry, I do not understand your answer (${YES_OR_NO})"
910 echo " Make sure to run ${1} yourself"
917 case "${NEED_MAKEDEV}" in
921 echo "*** You installed a new ${DESTDIR}/dev/MAKEDEV script, so make sure that you run"
922 echo " 'cd ${DESTDIR}/dev && /bin/sh MAKEDEV all' to rebuild your devices"
923 run_it_now "cd ${DESTDIR}/dev && /bin/sh MAKEDEV all"
927 case "${NEED_NEWALIASES}" in
931 if [ -n "${DESTDIR}" ]; then
932 echo "*** You installed a new aliases file into ${DESTDIR}/etc/mail, but"
933 echo " the newaliases command is limited to the directories configured"
934 echo " in sendmail.cf. Make sure to create your aliases database by"
935 echo " hand when your sendmail configuration is done."
937 echo "*** You installed a new aliases file, so make sure that you run"
938 echo " '/usr/bin/newaliases' to rebuild your aliases database"
939 run_it_now '/usr/bin/newaliases'
944 case "${NEED_CAP_MKDB}" in
948 echo "*** You installed a login.conf file, so make sure that you run"
949 echo " '/usr/bin/cap_mkdb ${DESTDIR}/etc/login.conf'"
950 echo " to rebuild your login.conf database"
951 run_it_now "/usr/bin/cap_mkdb ${DESTDIR}/etc/login.conf"
955 case "${NEED_PWD_MKDB}" in
959 echo "*** You installed a new master.passwd file, so make sure that you run"
960 if [ -n "${DESTDIR}" ]; then
961 echo " '/usr/sbin/pwd_mkdb -d ${DESTDIR}/etc -p ${DESTDIR}/etc/master.passwd'"
962 echo " to rebuild your password files"
963 run_it_now "/usr/sbin/pwd_mkdb -d ${DESTDIR}/etc -p ${DESTDIR}/etc/master.passwd"
965 echo " '/usr/sbin/pwd_mkdb -p /etc/master.passwd'"
966 echo " to rebuild your password files"
967 run_it_now '/usr/sbin/pwd_mkdb -p /etc/master.passwd'
974 if [ -r "${MM_EXIT_SCRIPT}" ]; then
975 . "${MM_EXIT_SCRIPT}"
978 case "${COMP_CONFS}" in
981 . ${DESTDIR}/etc/defaults/rc.conf
984 echo "*** Comparing conf files: ${rc_conf_files}"
986 for CONF_FILE in ${rc_conf_files}; do
987 if [ -r "${DESTDIR}${CONF_FILE}" ]; then
989 echo "*** From ${DESTDIR}${CONF_FILE}"
990 echo "*** From ${DESTDIR}/etc/defaults/rc.conf"
992 for RC_CONF_VAR in `grep -i ^[a-z] ${DESTDIR}${CONF_FILE} |
995 grep -w ^${RC_CONF_VAR} ${DESTDIR}${CONF_FILE}
996 grep -w ^${RC_CONF_VAR} ${DESTDIR}/etc/defaults/rc.conf ||
997 echo ' * No default variable with this name'
1005 case "${PRE_WORLD}" in
1008 MAKE_CONF="${SOURCEDIR%etc}share/examples/etc/make.conf"
1011 echo '*** Comparing make variables'
1013 echo "*** From ${DESTDIR}/etc/make.conf"
1014 echo "*** From ${MAKE_CONF}"
1016 for MAKE_VAR in `grep -i ^[a-z] /etc/make.conf | cut -d '=' -f 1`; do
1018 grep -w ^${MAKE_VAR} ${DESTDIR}/etc/make.conf
1019 grep -w ^#${MAKE_VAR} ${MAKE_CONF} ||
1020 echo ' * No example variable with this name'