aboutsummaryrefslogtreecommitdiff
path: root/install_meson.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-09-30 21:53:47 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-09-30 21:53:47 +0300
commit5d2bdc16aa26145fa60d04b13b7e98343d9890ab (patch)
tree5020a40c816504a16a6d0f0ef8b6ae4a7ee6fb72 /install_meson.py
parent8d90739ed7dd15fdc8bfa60fdcef94717777b85d (diff)
downloadmeson-5d2bdc16aa26145fa60d04b13b7e98343d9890ab.zip
meson-5d2bdc16aa26145fa60d04b13b7e98343d9890ab.tar.gz
meson-5d2bdc16aa26145fa60d04b13b7e98343d9890ab.tar.bz2
Gui tool works when installed now.
Diffstat (limited to 'install_meson.py')
-rwxr-xr-xinstall_meson.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/install_meson.py b/install_meson.py
index a4535ea..1b691d5 100755
--- a/install_meson.py
+++ b/install_meson.py
@@ -50,13 +50,15 @@ else:
script_dir = os.path.join(install_root, 'share/meson-' + version)
bin_dir = os.path.join(install_root, 'bin')
bin_script = os.path.join(script_dir, 'meson.py')
+gui_script = os.path.join(script_dir, 'mesongui.py')
bin_name = os.path.join(bin_dir, 'meson')
+gui_name = os.path.join(bin_dir, 'mesongui')
man_dir = os.path.join(install_root, 'share/man/man1')
in_manfile = 'man/meson.1'
out_manfile = os.path.join(man_dir, 'meson.1.gz')
symlink_value = os.path.relpath(bin_script, os.path.dirname(bin_name))
-
+guisymlink_value = os.path.relpath(gui_script, os.path.dirname(gui_name))
files = glob.glob('*.py')
files += glob.glob('*.ui')
@@ -77,7 +79,8 @@ try:
os.remove(bin_name)
except OSError:
pass
-print('Creating symlink %s.' % bin_name)
+print('Creating symlinks %s and %s.' % (bin_name, gui_name))
os.symlink(symlink_value, bin_name)
+os.symlink(guisymlink_value, gui_name)
print('Installing manfile to %s.' % man_dir)
open(out_manfile, 'wb').write(gzip.compress(open(in_manfile, 'rb').read()))