Menu

#38 Linux: Move .sh-launchers to /usr/bin

1.0.5
closed
None
3
2018-10-05
2014-11-13
Andr1an
No

I think it would be really cool to move all djv_*.sh to /usr/bin directory and remove ".sh" from names. It will make it possible to call all utilities directly from bash, without making aliases and changing PATH.

Here is how I rewrote all files on my Debian:

#!/bin/sh

appname=basename $0

dirname="/usr/local/djv-1.0.4-Linux-64"

export LD_LIBRARY_PATH=$dirname"/lib"
export DYLD_FALLBACK_LIBRARY_PATH=$dirname"/lib"

$dirname/bin/$appname "$@"

Discussion

  • darbyjohnston

    darbyjohnston - 2014-11-15

    Hi,

    I'll try and make this change for the next version, thanks.

    Darby

     
  • darbyjohnston

    darbyjohnston - 2014-11-15
    • Group: 1.0.4 --> 1.0.5
     
  • darbyjohnston

    darbyjohnston - 2014-11-29
    • assigned_to: darbyjohnston
     
  • darbyjohnston

    darbyjohnston - 2014-12-14
    • status: open --> pending
     
  • darbyjohnston

    darbyjohnston - 2014-12-26

    Hi,

    I've just uploaded a new version which has this functionality, it is available here:

    http://sourceforge.net/projects/djv/files/djv-stable/1.0.5/

    I've tested it out on CentOS 6 and Ubuntu 14.04 and it seems to work OK. If you have some time give it a try.

    Thanks, Darby

     
  • darbyjohnston

    darbyjohnston - 2018-10-05
    • status: pending --> closed