summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/librediff18
1 files changed, 11 insertions, 7 deletions
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 <http://www.gnu.org/licenses/>.
-. /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