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

tl=`pwd`

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