aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkbdata.src/rules/merge.py
blob: 442a866f2588f03359885c915d1fd5f84c3d7f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()