aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-01-17 05:49:09 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-01-17 05:49:09 +0000
commit9c7e28ce045310942cfd8d807a578e6d44db1c71 (patch)
tree615631c13886ae6f1e0b3981ef705c2545158d92
parent4ec8a7171e297936a4aab3ddfc72a659e5e0365c (diff)
I wrote script to automatically generate pd-settings files for Windows and Mac OS X. Currently it just generates a list of libs to load, but it could easily be extended to do more.
Also, it needs the GNU/Linux settings, but I didn't add it yet because I don't know the format offhand. Also, it would be quite easy to add. svn path=/trunk/; revision=4439
-rwxr-xr-xscripts/generate-pd-settings-files.sh46
1 files changed, 46 insertions, 0 deletions
diff --git a/scripts/generate-pd-settings-files.sh b/scripts/generate-pd-settings-files.sh
new file mode 100755
index 00000000..d07ec252
--- /dev/null
+++ b/scripts/generate-pd-settings-files.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+LIBS="Gem cyclone zexy cxc ext13 iemabs iemmatrix markex maxlib memento mjlib motex oscx pddp pdogg pdp pidip pixeltango pmpd rradical sigpack smlib toxy unauthorized vbap xsample"
+
+
+ROOT_DIR=~/cvs/pure-data/packages
+
+GNULINUX_FILE=${ROOT_DIR}/linux_make/pdsettings
+MACOSX_FILE=${ROOT_DIR}/darwin_app/org.puredata.pd.plist
+WINDOWS_FILE=${ROOT_DIR}/win32_inno/pd-settings.reg
+
+
+MACOSX_HEADER='<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>'
+MACOSX_FOOTER='</dict>\n
+</plist>\n'
+
+
+WINDOWS_HEADER='Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\SOFTWARE\Pd]'
+
+
+#echo -e $GNULINUX_HEADER > $GNULINUX_FILE
+echo -e $MACOSX_HEADER > $MACOSX_FILE
+echo -e $WINDOWS_HEADER > $WINDOWS_FILE
+
+function print_macosx ()
+{
+ echo -e "\t<key>loadlib$1</key>" >> $MACOSX_FILE
+ echo -e "\t<string>$2</string>" >> $MACOSX_FILE
+}
+
+function print_windows ()
+{
+ echo "\"loadlib$1\"=\"$2\"" >> $WINDOWS_FILE
+}
+
+
+i=1
+for lib in $LIBS; do
+ echo -n "$lib "
+ print_macosx $i $lib
+ print_windows $i $lib
+ ((++i))
+done
+echo " "
+
+echo -e $MACOSX_FOOTER >> $MACOSX_FILE