summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
authorJonathan Bauer2014-05-27 15:24:53 +0200
committerJonathan Bauer2014-05-27 15:24:53 +0200
commitaac4359320246c4555deeb6f9289f23e9655afa1 (patch)
tree630257c31ddd0e5f51c30d7ce09b16cdc46dcfe3 /remote/modules
parent[printergui] ghostscript binary fishing (diff)
downloadtm-scripts-aac4359320246c4555deeb6f9289f23e9655afa1.tar.gz
tm-scripts-aac4359320246c4555deeb6f9289f23e9655afa1.tar.xz
tm-scripts-aac4359320246c4555deeb6f9289f23e9655afa1.zip
[printergui] forgot to explicitly copy 'gs' to build dir
Diffstat (limited to 'remote/modules')
-rw-r--r--remote/modules/printergui/module.build10
1 files changed, 10 insertions, 0 deletions
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() {
: