Date: Sun, 12 Jan 2003 20:12:34 +0100 (CET) From: Slaven Rezic <slaven@rezic.de> To: doc@freebsd.org Subject: porters-handbook: suggestion Message-ID: <200301121912.h0CJCY6c039300@vran.herceg.de>
index | next in thread | raw e-mail
Here's a small suggestion for the "Automated package list creation"
chapter in
.../en_US.ISO8859-1/books/porters-handbook/porting-autoplist.html:
Change the line
(cd /var/tmp/port-name && find -d * -type d) | comm -13 OLD-DIRS - | sed -e 's#^#@dirrm #' >> pkg-plist
to
(cd /var/tmp/port-name && find -d * -type d) | comm -13 OLD-DIRS - | sed -e 's#^#@dirrm #' | sort -r >> pkg-plist
By inserting "sort -r" directories are sorted effectively by length,
so it is assured that parent directories are not deleted before their
subdirectories.
Regards,
Slaven
--
Slaven Rezic - slaven@rezic.de
tktimex - project time manager
http://sourceforge.net/projects/ptktools/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301121912.h0CJCY6c039300>
