-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-channeltinkergimp.sh
executable file
·32 lines (32 loc) · 1.26 KB
/
setup-channeltinkergimp.sh
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
#!/bin/bash
if [ ! -f rotocanvas/__init__.py ]; then
mkdir -p ~/git
git clone https://github.com/poikilos/rotocanvas ~/git/rotocanvas
cd ~/git/rotocanvas
fi
if [ -f ~/.config/GIMP/2.10/plug-ins/channel_tinker.py ]; then
rm ~/.config/GIMP/2.10/plug-ins/channel_tinker.py
fi
if [ -f ~/.config/GIMP/2.10/plug-ins/channeltinkergimp.py ]; then
rm ~/.config/GIMP/2.10/plug-ins/channeltinkergimp.py
fi
if [ -d ~/.config/GIMP/2.10/plug-ins/channel_tinker ]; then
rm ~/.config/GIMP/2.10/plug-ins/channel_tinker # try symlink FIRST
if [ $? -ne 0 ]; then
# If there was an error, assume it is a directory:
rm -Rf ~/.config/GIMP/2.10/plug-ins/channel_tinker
fi
fi
if [ -d ~/.config/GIMP/2.10/plug-ins/channeltinker ]; then
rm ~/.config/GIMP/2.10/plug-ins/channeltinker # try symlink FIRST
if [ $? -ne 0 ]; then
# If there was an error, assume it is a directory:
rm -Rf ~/.config/GIMP/2.10/plug-ins/channeltinker
fi
fi
cp -R channeltinker ~/.config/GIMP/2.10/plug-ins/
cp channeltinkergimp.py ~/.config/GIMP/2.10/plug-ins/
# or
# ln -s ~/git/rotocanvas/channeltinkergimp.py ~/.config/GIMP/2.10/plug-ins/
# ln -s ~/git/rotocanvas/channeltinker ~/.config/GIMP/2.10/plug-ins/
# ls -l ~/.config/GIMP/2.10/plug-ins/channeltinker