aboutsummaryrefslogtreecommitdiff
path: root/scripts/insert_declare.py
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-05-30 19:13:56 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-05-30 19:13:56 +0000
commit099203b69050791f0dad8f631d5d62e674ddf5a4 (patch)
treeace64477c1ec7823a572b86efeb84b2eb88ffb60 /scripts/insert_declare.py
parent1f12848028ff543b3938970ff4b77fe225eb5708 (diff)
updated for new libdir layout which needs a different declare statment than the 0.41.4 release
svn path=/trunk/; revision=13580
Diffstat (limited to 'scripts/insert_declare.py')
-rwxr-xr-xscripts/insert_declare.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/insert_declare.py b/scripts/insert_declare.py
index 472fb27f..15e0f58e 100755
--- a/scripts/insert_declare.py
+++ b/scripts/insert_declare.py
@@ -16,7 +16,7 @@ for root, dirs, files in os.walk('.'):
pass
# print "root: " + root
for name in files:
- m = re.search(".*-help\.pd$", name)
+ m = re.search(".*\.pd$", name)
if m:
helppatch = os.path.join(root, m.string)
fd = open(helppatch, 'r')
@@ -28,7 +28,8 @@ for root, dirs, files in os.walk('.'):
print helppatch
fd = open(helppatch, 'w')
fd.write(firstline)
- fd.write("#X declare -lib " + library.lower() + ";\n")
+# fd.write("#X declare -lib " + library.lower() + ";\n")
+ fd.write("#X declare -path ..;\n")
fd.writelines(contents)
fd.close()