project: Renamed the names of the icons' files
The names of icons' files, besides containing the final names, they also contained the path in which they were going to be installed. This implies that they have to be renamed on the installation process. This patch creates the proper directory tree needed on the installation process and renames all files' names to their final names. https://bugzilla.gnome.org/show_bug.cgi?id=782843
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
a1d25d2d7e
commit
4cb0b14343
@@ -1,19 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
install_prefix = os.environ['MESON_INSTALL_PREFIX']
|
||||
|
||||
name_pattern = re.compile('hicolor_apps_(?:\d+x\d+|symbolic)_(.*)')
|
||||
search_pattern = '/**/hicolor_*'
|
||||
|
||||
icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor')
|
||||
[os.rename(file, os.path.join(os.path.dirname(file), name_pattern.search(file).group(1)))
|
||||
for file in glob.glob(icondir + search_pattern, recursive=True)]
|
||||
|
||||
schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')
|
||||
|
||||
if not os.environ.get('DESTDIR'):
|
||||
|
||||
Reference in New Issue
Block a user