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