Skip to content

Commit

Permalink
xsrc: use xdistdir
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Sep 15, 2014
1 parent f97eb82 commit 2b0273b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xsrc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2b0273b

Please sign in to comment.