source: BLFS/packages.sh@ 3d1e5a7

experimental
Last change on this file since 3d1e5a7 was 1d2f9d4, checked in by Manuel Canales Esparcia <manuel@…>, 19 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.