]> git.lyx.org Git - features.git/blob - development/MacOSX/LyX.app/Contents/MacOS/lyxeditor
couple of mac updates from Bennet Helm
[features.git] / development / MacOSX / LyX.app / Contents / MacOS / lyxeditor
1 #!/bin/sh
2 # ron@18james.com, 11 Dec 2003
3 # With modifications by Bennett Helm
4
5 lyxpipe=/Users/$USER/Library/Application\ Support/LyX/.lyxpipe
6 if  [ ! -p $lyxpipe.out ]
7   then
8     lyxprefs=`expr "$0" : '\(.*\)MacOS/lyxeditor'`Resources/lyx/preferences
9     lyxpipe=`perl -n -e 'print,exit if s/^.serverpipe\\s+\"(.+)\"/$1/;' ~/Library/Application\ Support/LyX/preferences $lyxprefs`
10 fi
11 [ -p $lyxpipe.in ] || exit 0
12 file=`echo "$1" | sed 's|^/private||'`
13 echo LYXCMD:macdvix:server-goto-file-row:$file $2 > $lyxpipe.in || exit
14 read < $lyxpipe.out || exit
15
16