blob: 94a93365737f6cb95ece8055d15b4eaa79cd8609 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
# $Id: genpkglist,v 1.4 2002/06/26 18:59:49 judd Exp $
tl=`pwd`
cat >packages.txt <<_EOF
<table>
<tr>
<th>Package</th>
<th>Version</th>
<th>Collection</th>
<th>Description</th>
</tr>
_EOF
for category in `find * -type d -maxdepth 0 | grep -v CVS`; do
echo $category >>packages.txt
for pkg in `ls $category | sort`; do
cd $tl/$category/$pkg
if [ -f PKGBUILD ]; then
. PKGBUILD
cd $tl
echo " $pkgname $pkgver" >>packages.txt
fi
done
cd $tl
echo "" >>packages.txt
done
|