File: ost_config.patch

package info (click to toggle)
openstructure 2.9.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 205,228 kB
  • sloc: cpp: 188,129; python: 35,361; ansic: 34,298; fortran: 3,275; sh: 286; xml: 146; makefile: 29
file content (34 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: Adjusting paths for Debian installation.
Author: Andrius Merkys <merkys@debian.org>
--- a/scripts/dng.in
+++ b/scripts/dng.in
@@ -26,7 +26,7 @@
   SCRIPT_NAME="$0"
 fi
 BIN_DIR=`dirname "$SCRIPT_NAME"`
-source "$BIN_DIR/../@LIBEXEC_PATH@/ost_config"
+source "/usr/share/openstructure/ost_config"
 
 
 opts=""
@@ -40,4 +40,4 @@
 done
 IFS="#"
 
-$BIN_DIR/../@LIBEXEC_PATH@/gosty $DNG_INITDIR/dng_startup.py dng $opts
+/usr/bin/gosty $DNG_INITDIR/dng_startup.py dng $opts
--- a/scripts/ost.in
+++ b/scripts/ost.in
@@ -28,10 +28,10 @@
   SCRIPT_NAME="$0"
 fi
 BIN_DIR=`dirname "$SCRIPT_NAME"`
-OST_EXEC_DIR=$(cd $BIN_DIR/../@LIBEXEC_PATH@ && pwd)
+OST_EXEC_DIR=/usr/bin
 export OST_EXEC_DIR
 
-source "$OST_EXEC_DIR/ost_config"
+source "/usr/share/openstructure/ost_config"
 
 ACTION="$1"
 OST_SCRIPT="${OST_EXEC_DIR}/ost-${ACTION}"