FILES=notify-when-up2 bashquote.py deep_ssh.py ps_subset.py drsmenu.py .PHONY: default default: go go3: tags /usr/local/cpython-3.10/bin/mypy --disallow-untyped-calls --ignore-missing-imports ${FILES} ./notify-when-up2 -r dastromberg@bliz-mac -d -s . # go2: # ./t go: tags /usr/local/cpython-3.10/bin/mypy --disallow-untyped-calls --ignore-missing-imports ${FILES} ssh -n stromberg.dnsalias.org 'sleep 20 > /dev/null 2>&1 &' ./ps_subset.py -f forest.txt -s sleep # ./notify-when-up2 -s bash ./notify-when-up2 -i 4 -r stromberg.dnsalias.org -s sleep # For this, we want a real hostname that doesn't have an X server on it. DISPLAY=stromberg.dnsalias.org:0 ./notify-when-up2 --no-email -t true ./notify-when-up2 --help ./notify-when-up2 --no-blocking --no-email --true-command true ./notify-when-up2 --no-blocking --no-email --false-command false ./notify-when-up2 --no-blocking --no-email --spawn-command ls sleep 10 & ./notify-when-up2 --no-email --check-interval 2 --no-blocking --pid $$! ./notify-when-up2 --no-email --no-blocking -g 0 'echo 1' 0 ./notify-when-up2 --check-interval 5 --delta 'date +%M' .PHONY: tags tags: # Redhat and macOS call ctags-exuberant "ctags". macOS is from homebrew though. @echo Ignore it if you see a single error from ctags-exuberant, but not one from ctags. ctags-exuberant --language-force=python ${FILES} || ctags --language-force=python ${FILES} clean: rm -f *.pyc tags rm -rf .ropeproject .mypy_cache install: ./install-package --deb-packages 'notify-osd python3-gi gobject-introspection gir1.2-gtk-3.0' if [ `uname -s` = Darwin ]; then ./install-via-pip --python-path python3 --module-to-import mac_notifications --pip-package macos-notifications; fi ./install-file --file notify-when-up2 --directory /usr/local/bin/. ./install-file --file deep_ssh.py --directory /usr/local/lib/. ./install-file --file ps_subset.py --directory /usr/local/lib/. ./install-file --file bashquote.py --directory /usr/local/lib/. ./install-file --file drsmenu.py --directory /usr/local/lib/. if [ `uname -s` = Darwin ]; then cat README.MacOS; fi