File: ost_config.patch

package info (click to toggle)
openstructure 2.11.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 206,256 kB
  • sloc: cpp: 188,571; python: 36,686; ansic: 34,298; fortran: 3,275; sh: 312; xml: 146; makefile: 29
file content (34 lines) | stat: -rw-r--r-- 809 bytes parent folder | download
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
@@ -43,7 +43,7 @@
 fi
 
 BIN_DIR=$(dirname "$SCRIPT_PATH")
-source "$BIN_DIR/../@LIBEXEC_PATH@/ost_config"
+source "/usr/share/openstructure/ost_config"
 
 opts=""
 
@@ -56,4 +56,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
@@ -45,10 +45,10 @@
 fi
 
 BIN_DIR=$(dirname "$SCRIPT_PATH")
-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}"