digraphs: support xorg include creation from local data
[sheet.git] / tools / mkdigraphs-xorg
index 32a5044150c62657d5ce214f5052560f87847c6a..1ce8c69d1d06563f1f099e1c0f84d01b973ac349 100755 (executable)
@@ -5,9 +5,11 @@ use utf8;
 use open IO => ':utf8', ':std';
 use Data::Dump 'pp';
 
-our $VERSION = '1.00';
+our $VERSION = '1.01';
 
-open my $keysymh, '<', '/usr/include/X11/keysymdef.h'
+my $keysymh;
+open $keysymh, '<', 'data/keysymdef.h'
+       or open $keysymh, '<', '/usr/include/X11/keysymdef.h'
        or die "Could not find keysym definitions: $!\n";
 
 my %keysym;