wip
This commit is contained in:
parent
d3efee62cd
commit
d48890e4ec
7
install
7
install
|
@ -7,6 +7,7 @@ configdir=~/.config/runon
|
|||
|
||||
if [ "$1" == "--dev" ]; then
|
||||
editable=--editable
|
||||
devmode=1
|
||||
fi
|
||||
|
||||
if [ ! -d $venvdir/bin/activate ]; then
|
||||
|
@ -26,7 +27,11 @@ ln -sf $venvdir/bin/runon $bindir/
|
|||
|
||||
echo "install base config in $configdir..."
|
||||
mkdir -p $configdir
|
||||
cp -p $srcdir/runon.default.yaml $configdir/
|
||||
if [ -n "$devmode" ]; then
|
||||
ln -s $srcdir/runon.default.yaml $configdir/
|
||||
else
|
||||
cp -p $srcdir/runon.default.yaml $configdir/
|
||||
fi
|
||||
|
||||
echo "done."
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ debian_base: &debian_base
|
|||
- libgtk2.0
|
||||
- libgtk-3-0
|
||||
- bash-completion
|
||||
- vim-gtk3
|
||||
binds:
|
||||
- /etc/timezone:ro
|
||||
- /etc/localtime:ro
|
||||
|
@ -26,7 +27,7 @@ debian_base: &debian_base
|
|||
- USER
|
||||
- DISPLAY
|
||||
- TERM
|
||||
- debian_chroot={osname}
|
||||
- container={osname}
|
||||
|
||||
debian10:
|
||||
<<: *debian_base
|
||||
|
@ -46,7 +47,7 @@ ubuntu20.04:
|
|||
|
||||
ubuntu22.04:
|
||||
<<: *debian_base
|
||||
image: ubuntu22.04
|
||||
image: ubuntu:22.04
|
||||
|
||||
rh_base: &rh_base
|
||||
dockerfile:
|
||||
|
@ -67,6 +68,7 @@ rh_base: &rh_base
|
|||
- gtk3
|
||||
- bash-completion
|
||||
- python3
|
||||
- vim-X11
|
||||
binds:
|
||||
- /etc/timezone:ro
|
||||
- /etc/localtime:ro
|
||||
|
@ -75,7 +77,7 @@ rh_base: &rh_base
|
|||
- USER
|
||||
- DISPLAY
|
||||
- TERM
|
||||
- debian_chroot={osname}
|
||||
- container={osname}
|
||||
|
||||
|
||||
centos7:
|
||||
|
@ -116,4 +118,5 @@ rocky9:
|
|||
- gtk3
|
||||
- bash-completion
|
||||
- python3
|
||||
- vim-X11
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
srcdir=$(dirname $(readlink -f $0))
|
||||
venvdir=~/.local/lib/runon
|
||||
bindir=~/.local/bin
|
||||
configdir=~/.config/runon
|
||||
|
||||
if [ -e $venvdir/bin/runon ]; then
|
||||
echo "remove links from $bindir"
|
||||
|
@ -13,3 +14,9 @@ if [ -d $venvdir ]; then
|
|||
echo "remove virtualenv $venvdir"
|
||||
rm -rf $venvdir
|
||||
fi
|
||||
|
||||
if [ -e $configdir ]; then
|
||||
echo "remove configs"
|
||||
rm -vf $configdir/runon.default.yaml
|
||||
rmdir --ignore-fail-on-non-empty -v $configdir
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue