actions.py 600 B

12345678910111213141516171819
  1. #!/usr/bin/env python
  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 pisi.actionsapi import get, pisitools, shelltools
  7. NoStrip = ["/opt", "/usr"]
  8. IgnoreAutodep = True
  9. def install():
  10. pisitools.dodir("/opt/weasis/weasis")
  11. pisitools.dodir("/opt/weasis")
  12. shelltools.system("cp -r ../weasis/* %s/opt/weasis/weasis" % get.installDIR())
  13. shelltools.system("cp -r ../viewer-linux.sh %s/opt/weasis/" % get.installDIR())
  14. pisitools.dosym("/opt/weasis/viewer-linux.sh", "/usr/bin/weasis")