From aac4359320246c4555deeb6f9289f23e9655afa1 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 27 May 2014 15:24:53 +0200 Subject: [printergui] forgot to explicitly copy 'gs' to build dir --- remote/modules/printergui/module.build | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'remote/modules/printergui/module.build') diff --git a/remote/modules/printergui/module.build b/remote/modules/printergui/module.build index 869e8716..ac8ab7d1 100644 --- a/remote/modules/printergui/module.build +++ b/remote/modules/printergui/module.build @@ -21,6 +21,16 @@ build() { pinfo "Running make" make || perror "'make' failed." chmod 0700 "$DESTDIR/printpwgui" # So picky cupsd won't drop privileges to lp + + # fetch ghostscript binary + local BIN_LOCATION="$(which gs)" + [ ! -z "${BIN_LOCATION}" ] && BIN_LOCATION=$(readlink -f "$BIN_LOCATION") + if [ ! -z "${BIN_LOCATION}" -a -e "${BIN_LOCATION}" ]; then + tarcopy "${BIN_LOCATION}" "${MODULE_BUILD_DIR}" + else + perror "'gs' not found on the system! Please install ghostscript." + fi + } post_copy() { : -- cgit v1.2.3-55-g7522