aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-09-25 22:25:22 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-09-25 22:25:22 +0000
commit81c30c21e708dc678b368937210d4fe29178359f (patch)
tree307a3a16e77e8a6c5fcea468fe46da432580f7bd /scripts
parent90a8e65b67724106fa0935e505c6e81d4c9e0369 (diff)
updated to load libdir first, so it'll actually load the rest of the libdirs properly afterwards; wrote the generating script in the process to ignore pdp and pidip on windows
svn path=/trunk/; revision=8758
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-pd-settings-files.sh32
1 files changed, 29 insertions, 3 deletions
diff --git a/scripts/generate-pd-settings-files.sh b/scripts/generate-pd-settings-files.sh
index d15327d7..2fd4e972 100755
--- a/scripts/generate-pd-settings-files.sh
+++ b/scripts/generate-pd-settings-files.sh
@@ -1,9 +1,10 @@
#!/bin/sh
-LIBS="Gem cyclone zexy creb cxc ggee iemlib list-abs mapping markex maxlib memento mjlib motex oscx pddp pdogg pixeltango pmpd rradical sigpack smlib toxy unauthorized vbap pan freeverb hcs jmmmp ext13 hardware deprecated flatspace iem_anything pdp pidip flib ekext"
+LIBS="libdir Gem cyclone zexy creb cxc ggee iemlib list-abs mapping markex maxlib memento mjlib motex oscx pddp pdogg pixeltango pmpd rradical sigpack smlib toxy unauthorized vbap pan freeverb hcs jmmmp ext13 hardware deprecated flatspace iem_anything pdp pidip flib ekext"
GNULINUX_FONTPATH="/usr/share/pd /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
MACOSX_FONTPATH="/Library/Pd /System/Library/Fonts /Library/Fonts ~/Library/Fonts /usr/X11R6/lib/X11/fonts/TTF /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/fonts /sw/lib/X11/fonts/msttf /sw/lib/X11/fonts/intl/TrueType /sw/lib/X11/fonts/applettf"
+# TODO this needs to be changed to add to a user dir like %USERPROFILE% (like /Library/Pd)
WINDOWS_FONTPATH="hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,2f,00,46,00,6f,00,6e,00,74,00,73,00,00,00"
SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'`
@@ -12,7 +13,7 @@ ROOT_DIR=${SCRIPT_DIR}/../packages
GNULINUX_FILE=${ROOT_DIR}/linux_make/default.pdsettings
MACOSX_FILE=${ROOT_DIR}/darwin_app/org.puredata.pd.plist
WINDOWS_FILE=${ROOT_DIR}/win32_inno/pd-settings.reg
-
+WINDOWS_INNO_FILE=${ROOT_DIR}/win32_inno/pd-inno_registry.reg
GNULINUX_HEADER='standardpath: 1\nverbose: 0\ndefeatrt: 0\nflags: -helppath /usr/share/pd'
@@ -25,9 +26,15 @@ MACOSX_FOOTER='</dict>\n
WINDOWS_HEADER='Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\SOFTWARE\Pd]'
+# the file associations should be added here
+WINDOWS_INNO_HEADER=''
+
+
echo -e $GNULINUX_HEADER > $GNULINUX_FILE
echo -e $MACOSX_HEADER > $MACOSX_FILE
echo -e $WINDOWS_HEADER > $WINDOWS_FILE
+echo -e $WINDOWS_INNO_HEADER > $WINDOWS_INNO_FILE
+
# GNU/Linux -------------------------------------------------------------------#
print_gnulinux ()
@@ -70,6 +77,7 @@ print_macosx_fontpath ()
print_windows ()
{
echo "\"loadlib$1\"=\"$2\"" >> $WINDOWS_FILE
+ echo "Root: HKLM; SubKey: SOFTWARE\Pd; ValueType: string; ValueName: loadlib$1; ValueData: $2; Tasks: libs" >> $WINDOWS_INNO_FILE
}
print_windows_fontpath ()
@@ -78,29 +86,47 @@ print_windows_fontpath ()
for fontpath in $WINDOWS_FONTPATH; do
((++j))
echo "\"path${j}\"=${fontpath}" >> $WINDOWS_FILE
+ echo "\"path${j}\"=${fontpath}" >> $WINDOWS_INNO_FILE
done
}
print_windows_delete ()
{
echo "\"${1}${2}\"=-" >> $WINDOWS_FILE
+ echo "Root: HKLM; SubKey: SOFTWARE\Pd; ValueType: none; ValueName: ${1}${2}; Flags: deletevalue; Tasks: libs" >> $WINDOWS_INNO_FILE
}
#==============================================================================#
+echo "Running for GNU/Linux and Darwin:"
i=0
for lib in $LIBS; do
((++i))
echo -n "$lib "
print_gnulinux $i $lib
print_macosx $i $lib
- print_windows $i $lib
done
echo " "
# the .pdsettings file needs a terminator with the lib count
linux_end_count=$i
+# run separately so some libs can be excluded on Windows
+echo "Running for Windows:"
+i=0
+for lib in $LIBS; do
+ case "$lib" in
+ pdp) echo -n "(ignoring $lib on Windows) " ;;
+ pidip) echo -n "(ignoring $lib on Windows) " ;;
+ *)
+ echo -n "$lib "
+ ((++i))
+ print_windows $i $lib
+ ;;
+ esac
+done
+echo " "
+
# print lines to delete existing loadlib flags
echo "; delete any previous loadlib flags" >> $WINDOWS_FILE
while [ $i -lt 100 ]; do