forked from OpenCode/geany-openerp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
executable file
·33 lines (28 loc) · 1.71 KB
/
install
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
#!/bin/bash
# create necessary directories in case they don't already exist
mkdir -p $HOME/.config/geany/templates/files
mkdir -p $HOME/.config/geany/templates/tags
sudo pip3 install preprocess --break-system-packages
sudo pip3 install pycodestyle --break-system-packages
for file in __init__.py __manifest__.py odoo_class.py odoo_view.xml __openerp__.py openerp_class.py openerp_view.xml wizard.py wizard_view.xml; do
wget -O $HOME/.config/geany/templates/files/${file} https://raw.githubusercontent.com/vertelab/geany-odoo/master/templates/files/${file}
done
wget -O $HOME/.config/geany/tags/odoo.py.tags https://raw.githubusercontent.com/vertelab/geany-odoo/master/tags/odoo.py.tags
wget -O $HOME/.config/geany/snippets.conf https://raw.githubusercontent.com/vertelab/geany-odoo/master/snippets.conf
wget -O $HOME/.config/geany/geany.conf https://raw.githubusercontent.com/vertelab/geany-odoo/master/geany.conf
wget -O $HOME/.config/geany/filedefs/filetypes.python https://raw.githubusercontent.com/vertelab/geany-odoo/master/filetypes.python
wget -O $HOME/.config/geany/filedefs/filetypes.xml https://raw.githubusercontent.com/vertelab/geany-odoo/master/filetypes.xml
echo "1. This is good."
## 2021-11-18 Incskape
if [[ -d /usr/share/inkscape/extensions/ ]]; then
echo "2. This is looking good."
for file in empty_odoo.inx empty_odoo.py empty_social-media.inx empty_social-media.py ; do
echo "3. back in the loop."
echo "3. installing file... ${file}"
wget -O /usr/share/inkscape/extensions/${file} https://raw.githubusercontent.com/vertelab/geany-odoo/master/incskape/${file}
echo "4.installing file... ${file}"
done
else
echo "5. This is not good."
fi
echo "6. Mission complete."