From 1f8f0bd9ac4c11cdc1b9506f9f64d8192ecad4ee Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Mon, 10 Oct 2016 10:47:38 +0200 Subject: makepkg: Move parseopts from library to libmakepkg parseopts is used in makepkg and other scripts such as pacman-key as a getopt replacement. Instead of including it in those scripts via a macro, move it to libmakepkg/util/parseopts.sh and have scripts source this file where appropriate. To keep the parseopts test, a new variable was introduced: PM_LIBMAKEPKG_DIR Signed-off-by: Alad Wenter Signed-off-by: Allan McRae --- test/scripts/parseopts_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/scripts/parseopts_test.sh b/test/scripts/parseopts_test.sh index a8738a4c..a5821986 100755 --- a/test/scripts/parseopts_test.sh +++ b/test/scripts/parseopts_test.sh @@ -3,7 +3,7 @@ source "$(dirname "$0")"/../tap.sh || exit 1 # source the library function -lib=${1:-${PMTEST_SCRIPTLIB_DIR}parseopts.sh} +lib=${1:-${PMTEST_LIBMAKEPKG_DIR}util/parseopts.sh} if [[ -z $lib || ! -f $lib ]]; then tap_bail "parseopts library ($lib) could not be located" exit 1 -- cgit v1.2.3-24-g4f1b