[PD-cvs] scripts generate-pd-settings-files.sh,1.2,1.3
Hans-Christoph Steiner
eighthave at users.sourceforge.net
Thu Apr 6 08:25:12 CEST 2006
- Previous message: [PD-cvs] abstractions/footils/list-abs list-apply-help.pd, NONE, 1.1 list-apply.pd, NONE, 1.1 list-invint.pd, NONE, 1.1 list-makefilename-a.pd, NONE, 1.1 list-onearg-help.pd, NONE, 1.1 list-onearg.pd, NONE, 1.1 list-replace-help.pd, NONE, 1.1 list-replace.pd, NONE, 1.1 list-sieve-example-2.pd, NONE, 1.1 list-tabdump-help.pd, NONE, 1.1 list-tabdump.pd, NONE, 1.1 list-unitvec-help.pd, NONE, 1.1 list-unitvec.pd, NONE, 1.1 list-math.pd, 1.2, 1.3
- Next message: [PD-cvs] packages/linux_make .pdsettings,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pure-data/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3638
Modified Files:
generate-pd-settings-files.sh
Log Message:
added fontpaths to the pd-settings files
Index: generate-pd-settings-files.sh
===================================================================
RCS file: /cvsroot/pure-data/scripts/generate-pd-settings-files.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** generate-pd-settings-files.sh 17 Mar 2006 04:04:09 -0000 1.2
--- generate-pd-settings-files.sh 6 Apr 2006 06:25:09 -0000 1.3
***************
*** 1,15 ****
#!/bin/sh
! LIBS="Gem cyclone zexy cxc ext13 fftease hid iemabs iemmatrix liblist list-abs mapping markex maxlib memento mjlib motex oscx pddp pdogg pdp pidip pixeltango pmpd rradical sigpack smlib toxy unauthorized vasp 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'
--- 1,21 ----
#!/bin/sh
! LIBS="Gem cyclone zexy cxc ext13 fftease hid iemabs iemmatrix liblist list-abs mapping markex maxlib memento mjlib motex mtx oscx pddp pdogg pdp pidip pixeltango pmpd rradical sigpack smlib toxy unauthorized vasp vbap xsample"
+ GNULINUX_FONTPATH="/usr/X11R6/lib/X11/fonts /usr/X11R6/lib/X11/fonts/TTF /usr/lib/X11/fonts /usr/share/fonts/truetype"
+ MACOSX_FONTPATH="/System/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"
+ WINDOWS_FONTPATH="%SystemRoot%/Fonts"
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
! GNULINUX_HEADER='standardpath: 1\nverbose: 0'
!
!
! 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>\n\t<key>defeatrt</key>\n\t<string>1</string>'
MACOSX_FOOTER='</dict>\n
</plist>\n'
***************
*** 19,26 ****
! #echo -e $GNULINUX_HEADER > $GNULINUX_FILE
echo -e $MACOSX_HEADER > $MACOSX_FILE
echo -e $WINDOWS_HEADER > $WINDOWS_FILE
function print_macosx ()
{
--- 25,53 ----
! echo -e $GNULINUX_HEADER > $GNULINUX_FILE
echo -e $MACOSX_HEADER > $MACOSX_FILE
echo -e $WINDOWS_HEADER > $WINDOWS_FILE
+ # GNU/Linux -------------------------------------------------------------------#
+ function print_gnulinux ()
+ {
+ echo "loadlib$1: $2" >> $GNULINUX_FILE
+ }
+
+ function print_gnulinux_fontpath ()
+ {
+ i=0
+ for fontpath in $GNULINUX_FONTPATH; do
+ ((++i))
+ echo "path${i}: ${fontpath}" >> $GNULINUX_FILE
+ done
+ }
+
+ function print_gnulinux_footer ()
+ {
+ echo "nloadlib: $1" >> $GNULINUX_FILE
+ }
+
+ # Mac OS X --------------------------------------------------------------------#
function print_macosx ()
{
***************
*** 29,32 ****
--- 56,70 ----
}
+ function print_macosx_fontpath ()
+ {
+ i=0
+ for fontpath in $MACOSX_FONTPATH; do
+ ((++i))
+ echo -e "\t<key>path${i}</key>" >> $MACOSX_FILE
+ echo -e "\t<string>${fontpath}</string>" >> $MACOSX_FILE
+ done
+ }
+
+ # Windows ---------------------------------------------------------------------#
function print_windows ()
{
***************
*** 34,37 ****
--- 72,84 ----
}
+ function print_windows_fontpath ()
+ {
+ i=0
+ for fontpath in $WINDOWS_FONTPATH; do
+ ((++i))
+ echo "\"path${i}\"=\"${fontpath}\"" >> $WINDOWS_FILE
+ done
+ }
+
function print_windows_delete ()
{
***************
*** 39,52 ****
}
! i=1
for lib in $LIBS; do
echo -n "$lib "
print_macosx $i $lib
print_windows $i $lib
- ((++i))
done
echo " "
# print lines to delete existing loadlib flags
echo "; delete any previous loadlib flags" >> $WINDOWS_FILE
--- 86,109 ----
}
+ #==============================================================================#
! 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 .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
+
+
# print lines to delete existing loadlib flags
echo "; delete any previous loadlib flags" >> $WINDOWS_FILE
***************
*** 56,60 ****
done
! i=1
# print lines to delete existing path flags
echo "; delete all existing path flags" >> $WINDOWS_FILE
--- 113,118 ----
done
! print_windows_fontpath
!
# print lines to delete existing path flags
echo "; delete all existing path flags" >> $WINDOWS_FILE
***************
*** 64,66 ****
done
- echo -e $MACOSX_FOOTER >> $MACOSX_FILE
--- 122,123 ----
- Previous message: [PD-cvs] abstractions/footils/list-abs list-apply-help.pd, NONE, 1.1 list-apply.pd, NONE, 1.1 list-invint.pd, NONE, 1.1 list-makefilename-a.pd, NONE, 1.1 list-onearg-help.pd, NONE, 1.1 list-onearg.pd, NONE, 1.1 list-replace-help.pd, NONE, 1.1 list-replace.pd, NONE, 1.1 list-sieve-example-2.pd, NONE, 1.1 list-tabdump-help.pd, NONE, 1.1 list-tabdump.pd, NONE, 1.1 list-unitvec-help.pd, NONE, 1.1 list-unitvec.pd, NONE, 1.1 list-math.pd, 1.2, 1.3
- Next message: [PD-cvs] packages/linux_make .pdsettings,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pd-cvs
mailing list