aboutsummaryrefslogtreecommitdiffstats
path: root/aspell/aspell-0.50.5/mk-dirs_h.py
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
committerChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
commitf96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch)
treeedb17ec2c4ea13c5acb1c7350957a249a820e28d /aspell/aspell-0.50.5/mk-dirs_h.py
parentb6588aa6851fb220cedc387d21c51513ef8d67f4 (diff)
downloadopenembedded-f96441b9faf769c9ecdd4d338b605ea3d0cc4010.tar.gz
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'aspell/aspell-0.50.5/mk-dirs_h.py')
-rw-r--r--aspell/aspell-0.50.5/mk-dirs_h.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/aspell/aspell-0.50.5/mk-dirs_h.py b/aspell/aspell-0.50.5/mk-dirs_h.py
index e69de29bb2..a487751e81 100644
--- a/aspell/aspell-0.50.5/mk-dirs_h.py
+++ b/aspell/aspell-0.50.5/mk-dirs_h.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+import sys
+
+prefix=sys.argv[1]
+key=sys.argv[2]
+value=sys.argv[3]
+
+while prefix[-1] == '/':
+ prefix = prefix[:-2]
+
+plen = len(prefix)
+
+if value[:plen] == prefix:
+ value = value[plen:]
+ while value[0] == '/':
+ value = value[1:]
+ print "#define " + key + " \"<prefix:" + value + ">\"\n"
+else:
+ print "#define " + key + " \"" + value + "\"\n"