From 06f0fa6d1dfee7b8d9248d75b36919fae10f4b10 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 31 May 2013 19:33:48 -0600 Subject: librediff: fix (even if it is stupid) --- src/librediff | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/librediff') diff --git a/src/librediff b/src/librediff index e8824aa..f84d037 100755 --- a/src/librediff +++ b/src/librediff @@ -20,7 +20,9 @@ # You should have received a copy of the GNU General Public License # along with Parabola. If not, see . -. /etc/libretools.conf +. $(librelib conf.sh) +load_files libretools +check_vars libretools PATCHDIR cmd=${0##*/} @@ -43,12 +45,14 @@ main() { then error "Build scripts not found for ${package}(-libre)" else - - . ./${package}-libre/PKGBUILD - [[ -z ${pkgbase} ]] && pkgbase=${pkgname} - - # Generate a diff file, no -r since we don't want to patch src/ nor pkg/ - diff -auN ${package} ${package}-libre > $PATCHDIR/${pkgbase}-${pkgver}-${pkgrel}.patch + ( + . ./${package}-libre/PKGBUILD + [[ -z ${pkgbase} ]] && pkgbase=${pkgname} + + # Generate a diff file, no -r since we don't want to patch src/ nor pkg/ + diff -auN ${package} ${package}-libre > $PATCHDIR/${pkgbase}-${pkgver}-${pkgrel}.patch + ) + fi done exit 0 -- cgit v1.2.3-2-g168b