#!/bin/sh

green() {
      echo -e "\033[1;32m${1}\033[1;0m"
        }

red() {
      echo -e "\033[1;31m${1}\033[1;0m"
      }


echo 'pactools is a set of useful tools for pacman'
echo
echo 'Tools installed:'
echo
green ' *  pt-pacman-cage'
echo '       by: ody'
echo '       A script to keep the pacman db in a contiguous as possible'
echo '       place on your hd to make reading it quicker.'
echo '       Attention: be sure to have the module loop loaded in rc.conf'
echo '       WEB: http://bbs.archlinux.org/viewtopic.php?id=20385'
echo
green ' *   pt-pacman-uncage'
echo '       by: ody'
echo '       To uncage your pacman db, after pt-pacman-cage.'
echo '       Use only if you have problem with pt-pacman-cage and you'
echo '       want to come back to standard db system'
echo '       WEB: http://bbs.archlinux.org/viewtopic.php?id=20385'
echo
green ' *   pt-pacsize'
echo '       by: hads'
echo '       How much disk space do my installed packages use?'
echo '       This script answers to the question.'
echo '       WEB: http://bbs.archlinux.org/viewtopic.php?id=20971'
echo
green ' *   pt-deptree'
echo '       by: skoal'
echo '       A visual representation of packages dependencies'
echo '       WEB: http://bbs.archlinux.org/viewtopic.php?id=10283'
echo
green ' *   pt-pacman-info'
echo '       by: Pável Varela Rodríguez [aka NeOnsKuLL]'
echo '       List the names of configured repos in your pacman.conf'
echo '       Calculates the total number of available packages'
echo '       in each repo;'
echo '       calculates the number of installed packages.'
echo '       WEB: http://bbs.archlinux.org/viewtopic.php?id=23124'
echo
green ' *   pt-repolist'
echo '       by: dtw'
echo '       Shows installed packages from a certain repo.'
echo '       USAGE: pt-repolist <reponame> [all]'
echo '       <reponame> is the repository name'
echo '       [all] to include also NOT installed packages.'
echo '       WEB: http://bbs.archlinux.org/viewtopic.php?id=12369'
echo
green ' *  pt-pacfix'
echo '       by: pierluigi and fixed by Chris.Giles'
echo '       A script to list all the packages currently installed,'
echo '       according to /var/log/pacman.log'
echo '       WEB: http://bbs.archlinux.org/viewtopic.php?pid=227510'
echo 
red 'Please remember: pactools comes with NO WARRANTY, use at your own risk'
