This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
MahiroOS-jhalfs/BLFS/packages.sh
2006-05-23 18:38:23 +00:00

17 lines
295 B
Bash
Executable file

#!/bin/bash
#
# $Id$
#
set -e
BLFS_XML=$1
> packages.tmp
for file in `find $BLFS_XML -name "*.xml"` ; do
pkg_id=`grep "sect1 id" $file | sed -e 's/<sect1 id="//;s/".*//'`
[[ ! -z "$pkg_id" ]] && echo -e "$pkg_id\t$file" >> packages.tmp
done
sort packages.tmp -o packages
rm packages.tmp