aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkeyboard-config/rules/merge.py
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/xkeyboard-config/rules/merge.py')
-rw-r--r--xorg-server/xkeyboard-config/rules/merge.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/xorg-server/xkeyboard-config/rules/merge.py b/xorg-server/xkeyboard-config/rules/merge.py
new file mode 100644
index 000000000..442a866f2
--- /dev/null
+++ b/xorg-server/xkeyboard-config/rules/merge.py
@@ -0,0 +1,13 @@
+import sys
+
+pOUT=open(sys.argv[1],"wb")
+pHDR=open("HDR","r")
+for item in sys.argv[2:]:
+ if item == 'HDR':
+ pOUT.write("\n")
+ pOUT.write(pHDR.readline())
+ else:
+ pOUT.write(open(item,"rb").read())
+
+pOUT.close()
+