[CUWiN-Dev] Re: new patch for makeplist

Bill Comisky bcomisky at pobox.com
Wed Jan 12 13:51:44 CST 2005


On Wed, 12 Jan 2005, David Young wrote:

> On Wed, Jan 12, 2005 at 12:11:35AM -0600, Bill Comisky wrote:
>> On Tue, 11 Jan 2005, David Young wrote:
>>
>>> Bill,
>>>
>>> Give this patch a shot.  It applies to src/distrib/sets/makeplist in
>>> your 0.5.4 NetBSD sources.
>>
>> That mostly did the trick.  The find -mindepth option is still used once
>> in user.subr.  I just replaced find with the just-built version in
>> $DESTDIR/usr/bin (see attached) as a workaround.
>
> I sent a patch for user.subr the other day.  It should work.

find $DESTDIR/etc/skel/*

won't match the .* files.  '-type' is POSIX so

   find $DESTDIR/etc/skel -type f

works and doesn't match . or .. (see attached patch).

bill

p.s. The public svn server appears to be down.


--
Bill Comisky
bcomisky at pobox.com
-------------- next part --------------
Index: user.subr
===================================================================
--- user.subr	(revision 2423)
+++ user.subr	(working copy)
@@ -83,7 +83,7 @@
 		[ -d $DESTDIR/$homedir ] && continue
 		$INSTALL -d -o $uname -g $gname -m 755 $DESTDIR/$homedir
 		# copy in the skeleton directory
-		find $DESTDIR/etc/skel -mindepth 1 | \
+		find $DESTDIR/etc/skel -type f | \
 		sed 's,^'$DESTDIR'/etc/skel/,,' | \
 		while read skelfile; do
 			$INSTALL -N $DESTDIR/etc -o $uname -g $gname \


More information about the CU-Wireless-Dev mailing list