Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 15:22:17 +0100
From:      "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To:        Michael Lucas <mwlucas@blackhelicopters.org>
Cc:        j.kossen@home.nl, doc@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Re: porters handbook chapter 17 - Automated package list creation
Message-ID:  <20020312152217.40c69c42.corecode@corecode.ath.cx>
In-Reply-To: <20020312090910.A91593@blackhelicopters.org>
References:  <20020312130202.GA87740@jochem.dyndns.org> <20020312090910.A91593@blackhelicopters.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=.TxVJzm.6wBx3aP
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

actually i've developed a "simple" script which deals with this issue:

#!/bin/sh
(find . ; tar tzf ../mtree.x11-4.tgz) | sed -e 's,/$,,;s,^\./,,' | sort|uniq -u | while read d; do [ -d "$d" ] && echo -n "@dirrm "; echo $d; done | sed -e '/^@/{G;h;d;};${g;}'

this one expects ../mtree.x11-4.tgz to get the list of existing files
and directories, i know it's bloody dirty, but it's something to start
from:
one could replace the tar part with a pre-generated list of mtree
allowed files and dir.

after merging the after-install list with the "allowed" list, both are
cleaned, sorted and unified. the remainings (things that should be
removed) are then tested for being a directory and the apropriate @dirrm
is inserted. after that the whole list is resorted to place directory
removal at the end in reverse order to do a depth-first removal.

done.

oh yes, while you're (doc) at it, you should change that paragraph
concerning BSD.local.dist, because this is not always true! x apps need
BSD.x11-4.dist or BSD.x11.dist! somebody should clarify that.

hope somebody is helped with that

cheerz
  simon


-- 
/"\   http://corecode.ath.cx/
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News

--=.TxVJzm.6wBx3aP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)

iD8DBQE8jg8ir5S+dk6z85oRAsLFAJ0RD0HKDyBh6qAw7vUkdYHT5JY/CACghS+T
UCC6pTWfQMDi4rAqHpMsfNM=
=vR1o
-----END PGP SIGNATURE-----

--=.TxVJzm.6wBx3aP--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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