Files
main/util/shell/bash-completion/actions.py
T
2015-07-18 01:47:47 +03:00

28 lines
861 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import get
import os
def setup():
autotools.configure()
def build():
autotools.make("bash_completion.sh")
def install():
autotools.rawInstall('DESTDIR=%s' % get.installDIR())
# provided by util-linux , networkmanager , remove Slackware's makepkg completion
blacklist = ["cal", "chsh", "dmesg", "eject", "hd", "hexdump", "hwclock", "ionice", "look", "ncal", "nmcli", "newgrp", "makepkg", "renice", "rtcwake", "su"]
for comp in blacklist:
pisitools.remove("/usr/share/bash-completion/completions/%s" % comp)
pisitools.dodoc("AUTHORS", "CHANGES", "COPYING", "README")