#!/bin/bash
#
# packs
#
# (c) 2011-2015 Alf Gaida <agaida@siduction.org>
#

export TARGET="siduction"
export REPOSITORY="extra"
export DISTRI="unstable"
export ARCH="amd64"

while getopts “t:r:d:a:h” OPTION; do
     case ${OPTION} in
         t)
             export TARGET=${OPTARG}
             ;;
         r)
             export REPOSITORY=${OPTARG}
             ;;
         d)
             export DISTRI=${OPTARG}
             ;;
         a)
             export ARCH=${OPTARG}
             ;;
         h)
             #usage
             exit
             ;;
     esac
done

. /usr/share/pbuilder-scripts/set_pbuilder


cd ${BUILDRESULT}
echo -e "\033[1m\033[33mpbuilder-results: Leave with exit"
echo -e "$(pwd)\033[0m"; 
echo
ls -ap --color=always;
echo
export PS1='\[\033[1;33m\]\u@\h:\W \$\[\033[0m\] ' 
bash --posix

