[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: gschemdoc.sh



  User: ahvezda 
  Date: 07/02/10 11:19:16

  Modified:    .        gschemdoc.sh
  Log:
  Applied patch by Charles Lepple [ 1590587 ] gschemdoc additions for Mac
  
  OS X.  Thanks!
  
  
  
  
  Revision  Changes    Path
  1.10      +8 -2      eda/geda/gaf/utils/scripts/gschemdoc.sh
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: gschemdoc.sh
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/utils/scripts/gschemdoc.sh,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- gschemdoc.sh	27 Sep 2006 18:04:34 -0000	1.9
  +++ gschemdoc.sh	10 Feb 2007 16:19:16 -0000	1.10
  @@ -1,5 +1,5 @@
   #!/bin/sh
  -# $Id: gschemdoc.sh,v 1.9 2006/09/27 18:04:34 cnieves Exp $
  +# $Id: gschemdoc.sh,v 1.10 2007/02/10 16:19:16 ahvezda Exp $
   #
   # NOTE: built from gschemdoc.sh
   #
  @@ -29,6 +29,12 @@
   CANDIDATE_PDFREADER="xpdf acroread ggv gv"
   CANDIDATE_LOCATE="slocate locate"
   
  +# For OS X, since Linux has 'open' with different semantics
  +if [ "`uname -s`" = "Darwin" ]; then
  +	CANDIDATE_BROWSER="open $CANDIDATE_BROWSER"
  +	CANDIDATE_PDFREADER="open $CANDIDATE_PDFREADER"
  +fi
  +
   #
   #  make symbol filename into something more akin to a device name
   #
  @@ -80,7 +86,7 @@
   		echo "Using browser and file: $file"
   		# NOTE: Mozilla and Netscape does not seem to support
   		#       -- on the command line
  -		${browser} "file:$file"
  +		${browser} "file://$file"
   		exit
   	else
   		echo "Did not find a browser application."
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs