aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-01-23 21:31:22 -0500
committerRalph Amissah <ralph@amissah.com>2012-01-23 21:39:44 -0500
commit45a3eb9180ac22b9d0bbb54a3542878317e48f19 (patch)
tree7463f2e9c5ff8472491394bb767495b3c73f858d
parentv3 v3dv: texpdf, tampering with "safe" special character transformations, a fix (diff)
v3dv: sysenv, use "which" instead of "whereis" to locate programs, test
* [suggested by, Timothy Hume, used to get sisu texpdf to work on MacOS]
-rw-r--r--data/doc/sisu/CHANGELOG_v33
-rw-r--r--lib/sisu/v3dv/sysenv.rb2
2 files changed, 4 insertions, 1 deletions
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