summaryrefslogtreecommitdiffstats
path: root/genpkglist
blob: 5abe496073bc4918629c879cf9db9e86711b74c2 (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 {base,opt,contrib}; 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