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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5853 - (show annotations)
Tue Dec 15 01:19:33 2015 UTC (5 years, 7 months ago) by jfenwick
Original Path: trunk/localdebian/utils/tweak.sh
File MIME type: application/x-sh
File size: 1471 byte(s)
bringing changes over from debian for 4.1
The quilt patch series do not make sense at the moment because most of them will already be encorporated 

1 #!/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
35 # documentation
36 sed -i -e 's%<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>%%' $WORK/release/doc/sphinx_api/*.html
37 sed -i -e 's%<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>%%' $WORK/release/doc/sphinx_api/*.html

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26