#
KEY_ID=${KEY_ID:-'7157882F'}
+top_srcdir=${top_srcdir}
DEBREPO=~/debian
DEBDISTRO=stable
#PBUILDER_OPTS='--debbuildopts "-j8"'
package() {
local file
- if test -d $1/dist; then
+ if test -d $top_srcdir$1/dist; then
if test "$CONF" = "pbuilder"; then
- file=`find $1/dist -maxdepth 1 -type f -name $2_\*.dsc | head -n 1`
+ file=`find $top_srcdir$1/dist -maxdepth 1 -type f -name $2_\*.dsc | head -n 1`
pbuilder_build $file
else
- file=`find $1/dist -maxdepth 1 -type f -name $2-\*.src.rpm | head -n 1`
+ file=`find $top_srcdir$1/dist -maxdepth 1 -type f -name $2-\*.src.rpm | head -n 1`
mock_build $file
fi
else
gridsite|grids)
if test "$CONF" = "pbuilder"; then
- file=`find org.gridsite.core/RPMTMP -type f -name gridsite_\*.dsc | head -n 1`
+ file=`find ${top_srcdir}org.gridsite.core/RPMTMP -type f -name gridsite_\*.dsc | head -n 1`
pbuilder_build $file
else
- file=`find org.gridsite.core/RPMTMP -type f -name gridsite-\*.src.rpm | head -n 1`
+ file=`find ${top_srcdir}org.gridsite.core/RPMTMP -type f -name gridsite-\*.src.rpm | head -n 1`
mock_build $file
fi
;;