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