Commit 90497b84f88656ec151076644c5c69c3507ca3a9

Ran Benita 2019-10-31T21:21:35

scripts/makeheader: slight simplification Signed-off-by: Ran Benita <ran@unusedvar.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/scripts/makeheader b/scripts/makeheader
index cfdc684..600b565 100755
--- a/scripts/makeheader
+++ b/scripts/makeheader
@@ -1,13 +1,10 @@
 #!/usr/bin/env python
-
 from __future__ import print_function
 import re
 import os
 
-prefix = os.environ.get('X11_HEADERS_PREFIX')
-if not prefix:
-    prefix = '/usr'
 
+prefix = os.environ.get('X11_HEADERS_PREFIX', '/usr')
 HEADERS = [
     prefix + '/include/X11/keysymdef.h',
     prefix + '/include/X11/XF86keysym.h',