guake-guake/scripts
max ulidtko fce21e7d9b Revamp make uninstall
$(prefix) uppercased for convention: DESTDIR and PREFIX are the usual parameters of `make install`.
Mixed var-casing just looks clumsy in `make DESTDIR=/tmp/mypkgroot prefix=/usr install`.

Dropped scripts/find-first-site-package.py as junk code. It didn't work
altogether, always returning '/'. Because distutils.sysconfig.get_python_lib()
returns *one string*, not a list of strings; thus get_python_lib()[0] == '/'.

However, it isn't that trivial to detect the correct path to site-packages of
the last install. What we do, is take *all* possible site-packages locations
from site.getsitepackages([$PREFIX]), and remove {guake,guake-*.egg-info} from
there. This is robust, and can't do any harm besides wiping [possibly several]
guake packages under the specified PREFIX (which defaults to /usr/local) --
which is exactly what `make uninstall` is supposed to do anyway.

Targets uninstall-old-locale, uninstall-old-schemas dropped. I fail to see any
purpose and/or utility of them. With OLD_PREFIX:=$(DESTDIR)usr (which by itself
conflates considerations and simply is wrong), what those targets did can be
trivially emulated via `make DESTDIR=... PREFIX=/usr uninstall`; so there
remains no point in duplicating the uninstall path lists.

Target uninstall-schemas expanded to cover all installed artifacts.

Target uninstall-locale's idempotence fixed using the `|| :` error-silencer.

"Installing from source" warning corrected and made more prominent.

DEV_*_DIR vars dropped as unused, except DEV_DATA_DIR which is used.

Tested with:
  make DESTDIR=/tmp/tt PREFIX=/usr/local install
  make DESTDIR=/tmp/tt PREFIX=/usr/local uninstall
  tree /tmp/tt
  # 13 directories, 0 files

closes #1646 @ GitHub.
sem-ver: bugfix
2019-10-04 14:57:28 +02:00
..
all-sitedirs-in-prefix.py Revamp make uninstall 2019-10-04 14:57:28 +02:00
bootstrap-dev-arch.sh Add libwnck to bootstrap scripts 2019-04-26 08:07:58 +02:00
bootstrap-dev-debian.sh Add libwnck to bootstrap scripts 2019-04-26 08:07:58 +02:00
bootstrap-dev-fedora.sh Add libwnck to bootstrap scripts 2019-04-26 08:07:58 +02:00
bootstrap-dev-pip.sh update pip deps and allow setting PYTHON= in Makefile 2019-05-15 13:34:07 +02:00
colortest add colortest script 2018-04-14 23:19:40 +02:00
run-local-prefs.sh add run-local-prefs 2018-08-24 18:41:50 +02:00
run-local.sh Add verbose option to run-local and make run 2019-04-17 07:12:49 +02:00
test-exception.py Add some image in the documentation 2018-04-14 23:19:40 +02:00
weird_urls.sh Support ' and () in url 2018-04-17 15:03:51 +02:00