[PD-cvs] scripts generate-pd-settings-files.sh,1.7,1.8

Hans-Christoph Steiner eighthave at users.sourceforge.net
Thu Apr 27 00:03:31 CEST 2006


Update of /cvsroot/pure-data/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13160

Modified Files:
	generate-pd-settings-files.sh 
Log Message:
fixed windows and linux bugs in the pdsettings file generation

Index: generate-pd-settings-files.sh
===================================================================
RCS file: /cvsroot/pure-data/scripts/generate-pd-settings-files.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** generate-pd-settings-files.sh	13 Apr 2006 05:39:13 -0000	1.7
--- generate-pd-settings-files.sh	26 Apr 2006 22:03:29 -0000	1.8
***************
*** 74,81 ****
  function print_windows_fontpath ()
  {
! 	 i=0
  	 for fontpath in $WINDOWS_FONTPATH; do
! 		  ((++i)) 
! 		  echo "\"path${i}\"=\"${fontpath}\"" >> $WINDOWS_FILE
  	 done
  }
--- 74,81 ----
  function print_windows_fontpath ()
  {
! 	 j=0
  	 for fontpath in $WINDOWS_FONTPATH; do
! 		  ((++j)) 
! 		  echo "\"path${j}\"=\"${fontpath}\"" >> $WINDOWS_FILE
  	 done
  }
***************
*** 98,114 ****
  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
! while [ $i -lt 50 ]; do
! 	 print_windows_delete loadlib $i
  	 ((++i)) 
  done
  
--- 98,109 ----
  echo " "
  
! # 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 100 ]; do
  	 ((++i)) 
+ 	 print_windows_delete loadlib $i
  done
  
***************
*** 116,123 ****
  
  # print lines to delete existing path flags
  echo "; delete all existing path flags" >> $WINDOWS_FILE
! while [ $i -lt 50 ]; do
! 	 print_windows_delete path $i
  	 ((++i)) 
  done
  
--- 111,126 ----
  
  # print lines to delete existing path flags
+ i=1
  echo "; delete all existing path flags" >> $WINDOWS_FILE
! 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
+ 





More information about the Pd-cvs mailing list