]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/aspell/aspell-0.50.5/mk-dirs_h.py
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / aspell / aspell-0.50.5 / mk-dirs_h.py
1 #!/usr/bin/env python
2
3 import sys
4
5 prefix=sys.argv[1]
6 key=sys.argv[2]
7 value=sys.argv[3]
8
9 while prefix[-1] == '/':
10     prefix = prefix[:-2]
11
12 plen = len(prefix)
13
14 if value[:plen] == prefix:
15     value = value[plen:]
16     while value[0] == '/':
17         value = value[1:]
18     print "#define " + key + " \"<prefix:" + value + ">\"\n"
19 else:
20     print "#define " + key + " \"" + value + "\"\n"