actions.py 742 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2.
  5. # See the file http://www.gnu.org/copyleft/gpl.txt.
  6. from inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. from inary.actionsapi import pythonmodules
  11. def build():
  12. pythonmodules.compile()
  13. autotools.make("docs")
  14. def install():
  15. pythonmodules.install()
  16. inarytools.insinto("/etc/bash_completion.d/", "contrib/bash/bzr")
  17. inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/*")
  18. inarytools.dodoc("COPYING.txt", "README", "NEWS", "TODO")
  19. shelltools.unlinkDir("{}/usr/man/".format(get.installDIR()))