about summary refs log tree commit diff
diff options
context:
space:
mode:
authormaxice8 <thinkabit.ukim@gmail.com>2019-03-19 19:53:25 -0300
committerLeah Neukirchen <leah@vuxu.org>2019-03-20 17:57:55 +0100
commitf659a5081ef38c010999c150739f0cd07ea27872 (patch)
tree0c3ef402ec995b338f5cd9b52f0143c5fcae7961
parenta4941da6cb1bc6715b6ead32d23e9b81ddbdb5aa (diff)
downloadxtools-f659a5081ef38c010999c150739f0cd07ea27872.tar.gz
xtools-f659a5081ef38c010999c150739f0cd07ea27872.tar.xz
xtools-f659a5081ef38c010999c150739f0cd07ea27872.zip
xgensum: try to source the environment for the build-style as well.
Closes: #128 [via git-merge-pr]
-rwxr-xr-xxgensum5
1 files changed, 5 insertions, 0 deletions
diff --git a/xgensum b/xgensum
index d744b4e..58b57e8 100755
--- a/xgensum
+++ b/xgensum
@@ -28,6 +28,11 @@ fi
 
 . "$template"
 
+# Try to source the build-style as well. This is required for R-cran packages.
+if [ -f ${XBPS_DISTDIR}/common/environment/build-style/${build_style}.sh  ]; then
+	. ${XBPS_DISTDIR}/common/environment/build-style/${build_style}.sh
+fi
+
 XBPS_SRCDISTDIR=$($XBPS_DISTDIR/xbps-src show-var XBPS_SRCDISTDIR | tail -1)
 srcdir="$XBPS_SRCDISTDIR/$pkgname-$version"