scripts/makeheader: slight simplification

Signed-off-by: Ran Benita <ran@unusedvar.com>
master
Ran Benita 2019-10-31 21:21:35 +02:00
parent f0c0cb8074
commit 90497b84f8
1 changed files with 1 additions and 4 deletions

View File

@ -1,13 +1,10 @@
#!/usr/bin/env python #!/usr/bin/env python
from __future__ import print_function from __future__ import print_function
import re import re
import os import os
prefix = os.environ.get('X11_HEADERS_PREFIX')
if not prefix:
prefix = '/usr'
prefix = os.environ.get('X11_HEADERS_PREFIX', '/usr')
HEADERS = [ HEADERS = [
prefix + '/include/X11/keysymdef.h', prefix + '/include/X11/keysymdef.h',
prefix + '/include/X11/XF86keysym.h', prefix + '/include/X11/XF86keysym.h',