actions.py 771 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import get
  9. def install():
  10. inarytools.dobin("colorgcc.pl", "/usr/bin/colorgcc")
  11. inarytools.insinto("/etc", "colorgccrc.txt")
  12. inarytools.move("%s/etc/colorgccrc.txt" % get.installDIR(), "%s/etc/colorgccrc" % get.installDIR())
  13. inarytools.dodir("/usr/share/colorgcc")
  14. inarytools.dosym("../../bin/colorgcc", "/usr/share/colorgcc/colorgcc")
  15. for c in ["gcc", "cc", "g++", "c++", "gfortran", "gcj", get.CC(), get.CXX()]:
  16. inarytools.dosym("colorgcc", "/usr/share/colorgcc/%s" % c)