From dfc78129be7acaa0ebe71fe407d63b5141c10150 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 12 Oct 2016 15:27:26 +1000 Subject: Generalise makepkg-wrapper to handle any script using libmakepkg Signed-off-by: Allan McRae --- scripts/wrapper.sh.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scripts/wrapper.sh.in (limited to 'scripts/wrapper.sh.in') diff --git a/scripts/wrapper.sh.in b/scripts/wrapper.sh.in new file mode 100644 index 00000000..2039c2ac --- /dev/null +++ b/scripts/wrapper.sh.in @@ -0,0 +1,23 @@ +#!/bin/bash +# +# @PROGNAME@ - a wrapper for running the real @PROGNAME@ in the source tree +# +# Copyright (c) 2013-2016 Pacman Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +DIR="@PWD@" + +LIBRARY="$DIR"/libmakepkg exec "$DIR"/.lib/@PROGNAME@ "$@" -- cgit v1.2.3-24-g4f1b