bashdb bash-completion add repo
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#!/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")
|
||||
Reference in New Issue
Block a user