add patch script
This commit is contained in:
parent
f06696aff3
commit
36cfd96016
1 changed files with 18 additions and 0 deletions
18
patch_n2v.sh
Executable file
18
patch_n2v.sh
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
r | reset)
|
||||||
|
echo "Unpatching n2v"
|
||||||
|
cp -v n2v.bak/engines/psi4.py n2v/engines/psi4.py
|
||||||
|
cp -v n2v.bak/inverter.py n2v/inverter.py
|
||||||
|
cp -v n2v.bak/methods/zmp.py n2v/methods/zmp.py
|
||||||
|
cp -v n2v.bak/grid/grider.py n2v/grid/grider.py
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Patching n2v"
|
||||||
|
cp -v n2v.patched/engines/psi4.py n2v/engines/psi4.py
|
||||||
|
cp -v n2v.patched/inverter.py n2v/inverter.py
|
||||||
|
cp -v n2v.patched/methods/zmp.py n2v/methods/zmp.py
|
||||||
|
cp -v n2v.patched/grid/grider.py n2v/grid/grider.py
|
||||||
|
;;
|
||||||
|
esac
|
Loading…
Reference in a new issue