2017-07-25 22:28:38 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
2018-03-05 17:47:58 +01:00
|
|
|
gsettingsschemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas')
|
2017-07-25 22:28:38 +02:00
|
|
|
icondir = os.path.join(sys.argv[1], 'icons', 'hicolor')
|
|
|
|
|
|
|
|
if not os.environ.get('DESTDIR'):
|
2018-03-05 17:47:58 +01:00
|
|
|
print('Compiling gsettings schemas...')
|
|
|
|
subprocess.call(['glib-compile-schemas', gsettingsschemadir])
|
|
|
|
|
2017-07-25 22:28:38 +02:00
|
|
|
print('Update icon cache...')
|
|
|
|
subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])
|