summaryrefslogtreecommitdiffstats
path: root/genpkglist
blob: 09995927c5c563dd443169350012a1b389d0cce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

tl=`pwd`

for category in {base,opt,contrib}; do
  echo $category >>packages.txt
  for pkg in `ls $category`; do
    cd $tl/$category/$pkg
    . PKGBUILD
    cd $tl
    echo "  $pkgname $pkgver" >>packages.txt
  done
  cd $tl
  echo "" >>packages.txt
done