From 7b864b50731a8789364e8b3bf9a6b9581202ec46 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 15 Sep 2014 02:07:57 +0200 Subject: xgensum: use xdistdir --- xgensum | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'xgensum') diff --git a/xgensum b/xgensum index 3df9e82..c22a43b 100755 --- a/xgensum +++ b/xgensum @@ -15,19 +15,11 @@ else echo Usage: gensum TEMPLATE fi -if [ -d ../../hostdir/sources ]; then - XBPS_SRCDISTDIR=../../hostdir/sources -elif [ -d ../hostdir/sources ]; then - XBPS_SRCDISTDIR=../hostdir/sources -elif [ -d hostdir/sources ]; then - XBPS_SRCDISTDIR=hostdir/sources -else - XBPS_SRCDISTDIR=~/xbps-packages/hostdir/sources/ -fi - +XBPS_DISTDIR=$(xdistdir) +XBPS_SRCDISTDIR=$($XBPS_DISTDIR/xbps-src show-var XBPS_SRCDISTDIR | tail -1) srcdir="$XBPS_SRCDISTDIR/$pkgname-$version" -$XBPS_SRCDISTDIR/../../xbps-src -I fetch $pkgname +$XBPS_DISTDIR/xbps-src -I fetch $pkgname sums="" for f in $distfiles; do -- cgit 1.4.1