aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-04-26 22:03:29 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-04-26 22:03:29 +0000
commit5904b7aaa8131edd80805130cc352887e7a376ed (patch)
treedb53bec183f4a1a9d02717a0c97104662cd7a95f /scripts
parenta734a0389bc700b2fd7d4da364a5347e1dc811c4 (diff)
fixed windows and linux bugs in the pdsettings file generation
svn path=/trunk/; revision=5006
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-pd-settings-files.sh31
1 files changed, 17 insertions, 14 deletions
diff --git a/scripts/generate-pd-settings-files.sh b/scripts/generate-pd-settings-files.sh
index 04902915..1e8cd962 100755
--- a/scripts/generate-pd-settings-files.sh
+++ b/scripts/generate-pd-settings-files.sh
@@ -73,10 +73,10 @@ function print_windows ()
function print_windows_fontpath ()
{
- i=0
+ j=0
for fontpath in $WINDOWS_FONTPATH; do
- ((++i))
- echo "\"path${i}\"=\"${fontpath}\"" >> $WINDOWS_FILE
+ ((++j))
+ echo "\"path${j}\"=\"${fontpath}\"" >> $WINDOWS_FILE
done
}
@@ -97,27 +97,30 @@ for lib in $LIBS; do
done
echo " "
-# the .pd-settings file needs an end tag for the loadlib statements
-print_gnulinux_fontpath
-print_gnulinux_footer $i
-
-print_macosx_fontpath
-echo -e $MACOSX_FOOTER >> $MACOSX_FILE
-
+# the .pdsettings file needs a terminator with the lib count
+linux_end_count=$i
# print lines to delete existing loadlib flags
echo "; delete any previous loadlib flags" >> $WINDOWS_FILE
-while [ $i -lt 50 ]; do
- print_windows_delete loadlib $i
+while [ $i -lt 100 ]; do
((++i))
+ print_windows_delete loadlib $i
done
print_windows_fontpath
# print lines to delete existing path flags
+i=1
echo "; delete all existing path flags" >> $WINDOWS_FILE
-while [ $i -lt 50 ]; do
- print_windows_delete path $i
+while [ $i -lt 100 ]; do
((++i))
+ print_windows_delete path $i
done
+# the .pd-settings file needs an end tag for the loadlib statements
+print_gnulinux_fontpath
+print_gnulinux_footer $linux_end_count
+
+print_macosx_fontpath
+echo -e $MACOSX_FOOTER >> $MACOSX_FILE
+