lyx_mirror/development/MacOSX/LyX.app/Contents/MacOS/lyxeditor
Jean-Marc Lasgouttes ca46f14e71 * MacOSX/LyX.app/Contents/MacOS/lyxeditor: update location of
preferences file within LyX.app bundle 
	
	* MacOSX/LyX.app/Contents/Resources/preferences: update
	path_prefix to include /opt/local/bin, and remove references to
	"-1.4" version suffix



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13480 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-24 15:30:04 +00:00

17 lines
544 B
Bash
Executable File

#!/bin/sh
# ron@18james.com, 11 Dec 2003
# With modifications by Bennett Helm
lyxpipe=/Users/$USER/Library/Application\ Support/LyX/.lyxpipe
if [ ! -p $lyxpipe.out ]
then
lyxprefs=`expr "$0" : '\(.*\)MacOS/lyxeditor'`lyx/preferences
lyxpipe=`perl -n -e 'print,exit if s/^.serverpipe\\s+\"(.+)\"/$1/;' ~/Library/Application\ Support/LyX/preferences $lyxprefs`
fi
[ -p $lyxpipe.in ] || exit 0
file=`echo "$1" | sed 's|^/private||'`
echo LYXCMD:macdvix:server-goto-file-row:$file $2 > $lyxpipe.in || exit
read < $lyxpipe.out || exit