summary refs log blame commit diff stats
path: root/meson_post_install.py
blob: 6944242a01188d7971b4a104b051a08eb77d78e3 (plain) (tree)























                                                                
#!/usr/bin/env python3

import os
import sys
import subprocess

prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr/local')
datadir = os.path.join(prefix, 'share')
with_thememan = sys.argv[1] == 'true'

# Packaging tools define DESTDIR and this isn't needed for them
if 'DESTDIR' not in os.environ:
    print('Updating icon cache...')
    subprocess.call(['gtk-update-icon-cache', '-qtf',
                     os.path.join(datadir, 'icons', 'hicolor')])

    print('Updating desktop database...')
    subprocess.call(['update-desktop-database', '-q',
                     os.path.join(datadir, 'applications')])

    if with_thememan:
        print('Updating mime database...')
        subprocess.call(['update-mime-database',
                         os.path.join(datadir, 'mime')])
9; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
all:
	@cd ewc
	@-$(MAKE) /nologo /s /f makefile.mak $@
	@cd ..\lua
	@-$(MAKE) /nologo /s /f makefile.mak $@
	@cd ..\python
	@-$(MAKE) /nologo /s /f makefile.mak $@
	@cd ..\tcl
	@-$(MAKE) /nologo /s /f makefile.mak $@
	@cd ..\upd
	@-$(MAKE) /nologo /s /f makefile.mak $@
	@cd ..\xdcc
	@-$(MAKE) /nologo /s /f makefile.mak $@
	@cd ..\xtray
	@-$(MAKE) /nologo /s /f makefile.mak $@

clean:
	@del ewc\*.def
	@del ewc\*.dll
	@del ewc\*.exp
	@del ewc\*.lib
	@del ewc\*.obj
	@del lua\*.def
	@del lua\*.dll
	@del lua\*.exp
	@del lua\*.lib
	@del lua\*.obj
	@del python\*.def
	@del python\*.dll
	@del python\*.exp
	@del python\*.lib
	@del python\*.obj
	@del tcl\*.def
	@del tcl\*.dll
	@del tcl\*.exp
	@del tcl\*.lib
	@del tcl\*.obj
	@del upd\*.def
	@del upd\*.dll
	@del upd\*.exp
	@del upd\*.lib
	@del upd\*.obj
	@del xdcc\*.def
	@del xdcc\*.dll
	@del xdcc\*.exp
	@del xdcc\*.lib
	@del xdcc\*.obj
	@del xtray\*.def
	@del xtray\*.dll
	@del xtray\*.exp
	@del xtray\*.lib
	@del xtray\*.obj