about summary refs log tree commit diff
path: root/xsrc
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-09-15 02:10:03 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-09-15 02:10:03 +0200
commit2b0273b08106d4d591899c453555a9c041d512c0 (patch)
treeb9c248d7c57d6b5ad6e88f263d47cff945cc8a03 /xsrc
parentf97eb82f134406e20d9e6ee428123ce0bb905654 (diff)
downloadxtools-2b0273b08106d4d591899c453555a9c041d512c0.tar.gz
xtools-2b0273b08106d4d591899c453555a9c041d512c0.tar.xz
xtools-2b0273b08106d4d591899c453555a9c041d512c0.zip
xsrc: use xdistdir
Diffstat (limited to 'xsrc')
-rwxr-xr-xxsrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/xsrc b/xsrc
index 811a1a9..e043982 100755
--- a/xsrc
+++ b/xsrc
@@ -1,6 +1,7 @@
 #!/bin/sh
 # xsrc PKG - list source files for XBPS template
 
-~/xbps-packages/xbps-src show "$1" | sed -n '/distfiles:/s/[^:]*:[\t]*//p'
-find ~/xbps-packages/srcpkgs/$1/files 2>/dev/null
-find ~/xbps-packages/srcpkgs/$1/patches 2>/dev/null
+XBPS_DISTDIR=$(xdistdir)
+"$XBPS_DISTDIR/xbps-src" show "$1" | sed -n '/^distfiles:/s/[^:]*:[\t]*//p'
+find $XBPS_DISTDIR/srcpkgs/$1/files -type f 2>/dev/null
+find $XBPS_DISTDIR/srcpkgs/$1/patches -type f 2>/dev/null