Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2006 11:40:20 -0700
From:      "Ian A. Tegebo" <yontege@rescomp.berkeley.edu>
To:        freebsd-questions@freebsd.org
Cc:        sysadmin@rescomp.berkeley.edu
Subject:   Using mergemaster for non-base files
Message-ID:  <20060713184019.GU21646@rescomp.berkeley.edu>

next in thread | raw e-mail | index | archive | help
Is anyone using mergemaster for groups of files that are not being
updated from /usr/src?  I've been thinking of making a copy of 
/usr/src/etc/Makefile and then modifying it so that I can run mergemaster 
like this:

-------------------------- script --------------------------------------
MYTMP="/var/tmp/twiki_upgrade"
MYSRC="/var/tmp/new_twiki_src"
MYDST="/usr/local/www/twiki" 

mergemaster -t $MYTMP -m $MYSRC -D $MYDST
------------------------ end script ------------------------------------

The first problem I ran into was:

-------------------------- Error --------------------------------------
make: don't know how to make distrib-dirs. Stop
make: don't know how to make distrib-dirs. Stop

  *** FATAL ERROR: Cannot 'cd' to /var/tmp/new_twiki_src and install files to
        the temproot environment
------------------------ end Error -----------------------------------

Has anyone had any luck with something like this?  My approach will be
to write a Makefile in $MYSRC/etc/Makefile that will have targets:


$ grep -E '^[-a-zA-Z0-9_]+:' /usr/src/etc/Makefile
afterinstall:
distribute:
distribution:
distrib-dirs:
etc-examples:

--
Ian Tegebo
Residential Computing
UC Berkeley



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060713184019.GU21646>