From 45a3eb9180ac22b9d0bbb54a3542878317e48f19 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 23 Jan 2012 21:31:22 -0500 Subject: v3dv: sysenv, use "which" instead of "whereis" to locate programs, test * [suggested by, Timothy Hume, used to get sisu texpdf to work on MacOS] --- data/doc/sisu/CHANGELOG_v3 | 3 +++ lib/sisu/v3dv/sysenv.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/data/doc/sisu/CHANGELOG_v3 b/data/doc/sisu/CHANGELOG_v3 index 5451ae2f..c6628f5a 100644 --- a/data/doc/sisu/CHANGELOG_v3 +++ b/data/doc/sisu/CHANGELOG_v3 @@ -27,6 +27,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_3.1.12.orig.tar.xz * urls, odt maintenance path fix +* v3dv, sysenv, use "which" instead of "whereis" to locate programs, test + [suggested by, Timothy Hume, used to get sisu texpdf to work on MacOS] + %% 3.1.11.orig.tar.xz (2012-01-10:02/2) http://git.sisudoc.org/?p=code/sisu.git;a=log;h=refs/tags/sisu_3.1.11 http://git.sisudoc.org/?p=code/sisu.git;a=log;h=refs/tags/debian/sisu_3.1.11-1 diff --git a/lib/sisu/v3dv/sysenv.rb b/lib/sisu/v3dv/sysenv.rb index a5658ee1..4e0e12a7 100644 --- a/lib/sisu/v3dv/sysenv.rb +++ b/lib/sisu/v3dv/sysenv.rb @@ -612,7 +612,7 @@ module SiSU_Env @sys=InfoSystem.instance end def program_found?(program) - found=`whereis #{program}` + found=`which #{program}` #`whereis #{program}` (found =~/bin\/#{program}\b/) ? true : false end def locale #locales utf8 or other -- cgit v1.2.3