2005-09-21 10:04:26 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# ron@18james.com, 11 Dec 2003
|
2005-10-11 17:58:38 +00:00
|
|
|
# With modifications by Bennett Helm
|
2005-09-21 10:04:26 +00:00
|
|
|
|
2005-10-11 17:58:38 +00:00
|
|
|
lyxpipe=/Users/$USER/Library/Application\ Support/LyX/.lyxpipe
|
2005-09-21 10:04:26 +00:00
|
|
|
if [ ! -p $lyxpipe.out ]
|
|
|
|
then
|
2006-03-24 15:30:40 +00:00
|
|
|
lyxprefs=`expr "$0" : '\(.*\)MacOS/lyxeditor'`lyx/preferences
|
2005-10-11 17:58:38 +00:00
|
|
|
lyxpipe=`perl -n -e 'print,exit if s/^.serverpipe\\s+\"(.+)\"/$1/;' ~/Library/Application\ Support/LyX/preferences $lyxprefs`
|
2005-09-21 10:04:26 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|