#!/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