source: BLFS/packages.sh@ 1d2f9d4

experimental
Last change on this file since 1d2f9d4 was 1d2f9d4, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Added prototipe files for new BLFS module.

  • Property mode set to 100755
File size: 295 bytes
Line 
1#!/bin/bash
2#
3# $Id$
4#
5set -e
6
7BLFS_XML=$1
8
9> packages.tmp
10
11for file in `find $BLFS_XML -name "*.xml"` ; do
12 pkg_id=`grep "sect1 id" $file | sed -e 's/<sect1 id="//;s/".*//'`
13 [[ ! -z "$pkg_id" ]] && echo -e "$pkg_id\t$file" >> packages.tmp
14done
15
16sort packages.tmp -o packages
17rm packages.tmp
Note: See TracBrowser for help on using the repository browser.