On Mon, Aug 06, 2007 at 05:25:07PM +1000, Petrus wrote:
>
> What really gets me annoyed are people like the tcl devs who can't obey the
> standard tarball naming conventions...it means that if you want to write
> build scripts, you have to spend way more time than you should, writing bad,
> hackish edge cases on how to process such files.
>
I'm currently using
DIRECTORY=`tar -tvf ${PACKAGES}/${CURRENT} | \
head -n 1 | awk '{ print $6 }' | sed s'@^./@@' | \
cut -d '/' -f 1`
where PACKAGES points to the source code, typically /sources, and
CURRENT contains the name of the tarball. The sed is because some
tarballs have contained names beginning ./ (possibly an old version
of util-linux). The fact is, there are loads of packages whose name
doesn't match the directory name.
ĸen
--
das eine Mal als Tragödie, das andere Mal als Farce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page