Compare commits

...

2 Commits

Author SHA1 Message Date
idziubenko 496b01b7a9 code cleaned
3 years ago
idziubenko d69938c266 swaped pyxml for lxml, formats adjusted (untested)
3 years ago

6
.gitignore vendored

@ -0,0 +1,6 @@
revert_changes_to_vmachine
push_to_vmachine*
.vscode
*.pyc
*.pyo
*.bak

@ -0,0 +1,4 @@
{
"python.linting.enabled": false,
"python.pythonPath": "/usr/bin/python3.9"
}

25
.vscode/tasks.json vendored

@ -0,0 +1,25 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "push_to_VM",
"type": "shell",
"command": "./push_to_vmachine",
"problemMatcher": []
},
{
"label": "revert_VM",
"type": "shell",
"command": "./revert_changes_to_vmachine",
"problemMatcher": []
},
{
"label": "push_to_VM_py3",
"type": "shell",
"command": "./push_to_vmachine_py3",
"problemMatcher": []
}
]
}

@ -0,0 +1,22 @@
#!/bin/bash
read -r ip < ./../vmachine_ip
cur_dir=${PWD##*/}
cur_module=${cur_dir:18}
cur_module_inner=${cur_module//-}
echo $cur_dir
echo $cur_module
echo $cur_module_inner
echo $ip
#because this runs on a VM, paths must be absolute
in=/var/calculate/proj/calculate-utils-3-${cur_module}/pym/calculate/${cur_module_inner}/*
in_contr=/var/calculate/proj/calculate-utils-3-${cur_module}/pym/calculate/contrib/*
out=/usr/lib64/python2.7/site-packages/calculate/${cur_module_inner}/
out_contr=/usr/lib64/python2.7/site-packages/calculate/contrib
set -x
#VM's IP, hopefully you added the pub key
ssh root@$ip rsync -e "ssh" --progress root@192.168.122.1:$in $out -r
ssh root@$ip rsync -e "ssh" --progress root@192.168.122.1:$in_contr $out_contr -r
set +x

@ -0,0 +1,21 @@
#!/bin/bash
read -r ip < ./../vmachine_ip
cur_dir=${PWD##*/}
cur_module=${cur_dir:18}
cur_module_inner=${cur_module//-}
echo $cur_dir
echo $cur_module
echo $cur_module_inner
echo $ip
#because this runs on a VM, paths must be absolute
#for py3 push it together with contrib
in=/var/calculate/proj/calculate-utils-3-${cur_module}/pym/calculate/*
out=/usr/lib/python3.9/site-packages/calculate/
set -x
#VM's IP, hopefully you added the pub key
ssh root@$ip rsync -e "ssh" --progress root@192.168.122.1:$in $out -r
set +x

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save