/[escript]/release/5.2/localdebian/utils/tweak.sh
ViewVC logotype

Annotation of /release/5.2/localdebian/utils/tweak.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6692 - (hide annotations)
Mon Jun 25 02:31:06 2018 UTC (3 years, 1 month ago) by jfenwick
File MIME type: application/x-sh
File size: 1100 byte(s)
Fix

1 jfenwick 5853 #!/bin/bash
2    
3     # set paths for each package and inform launcher it is operating with
4     # tools in known locations
5    
6     if [ $# -ne 4 ]
7     then
8     echo "Incorrect parameter count" >&2
9     exit 1
10     fi
11    
12    
13     WORK=$1
14     WORKM=$2
15     WORK3=$3
16     WORK3M=$4
17    
18     # python-escript
19     sed -i -e "s%STDLOCATION=0%STDLOCATION=1%" $WORK/bin/run-escript2
20    
21     # python-escript-mpi
22     sed -i -e "s%ESCRIPT_ROOT=/usr/lib/python-escript%ESCRIPT_ROOT=/usr/lib/python-escript-mpi%" $WORKM/bin/run-escript2-mpi
23     sed -i -e "s%STDLOCATION=0%STDLOCATION=1%" $WORKM/bin/run-escript2-mpi
24    
25     # python-escript3
26     sed -i -e "s%STDLOCATION=0%STDLOCATION=1%" $WORK3/bin/run-escript3
27     sed -i -e "s%ESCRIPT_ROOT=/usr/lib/python-escript%ESCRIPT_ROOT=/usr/lib/python3-escript%" $WORK3/bin/run-escript3
28     sed -i -e "s%PYTHON_CMD=python%PYTHON_CMD=python3%" $WORK3/bin/run-escript3
29    
30     # python-escript3-mpi
31     sed -i -e "s%ESCRIPT_ROOT=/usr/lib/python-escript%ESCRIPT_ROOT=/usr/lib/python3-escript-mpi%" $WORK3M/bin/run-escript3-mpi
32     sed -i -e "s%STDLOCATION=0%STDLOCATION=1%" $WORK3M/bin/run-escript3-mpi
33     sed -i -e "s%PYTHON_CMD=python%PYTHON_CMD=python3%" $WORK3M/bin/run-escript3-mpi
34    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26