You are not logged in.
Pages: 1
i made this script to help me post the contents of my repo on the forum - it's pretty simple but it preformats with phpbb code so that you just paste the text into a post, complete with links to pkg homepages and your online PKGBUILDS - you can see what it churns out here
i figured anyone could easily adapt it to do the same for them
I should also note that this was all inspired/copied from the way Encelo presents his repo on the boards
#!/bin/sh
repo=$1
pkgdir=$2
#change me to your online PKGBUILD dir
pkgbuild_repo_url=http://dtw.jiwe.org/share/pkgs/dibble/PKGBUILDS/
format_bbcode() {
#change path to your local repos
source /home/pkgs/$repo/PKGBUILDS/$pkgdir/PKGBUILD
cat << EOF >>${output}
[list][*][b]$pkgname - $pkgver[/b]
[url=$url]Homepage[/url]
[url=$pkgbuild_repo_url$pkgdir/PKGBUILD]PKGBUILD[/url]
$pkgdesc[/list]
EOF
}
if [ -z $1 ] ; then
echo "No repo given dummy!"
exit
fi
if [ -z $pkgdir] ; then
output=$HOME/repolist.txt
echo "[u][b]$repo repo pkg listing[/b][/u]" >${output}
echo >>${output}
#change path to your local repos
cd /var/abs/$repo
find * -maxdepth 0 -type d | while read pkgdir ; do
format_bbcode
done
else
output=$HOME/${pkgname}_entry.txt
echo "${pkgname} pkg listing" >${output}
format_bbcode
fi
Offline
I've added this script to the new wiki scripts section here:
http://wiki2.archlinux.org/index.php/repolist
Offline
okey-doke!
Offline
Pages: 1