lyx_mirror/development/MacOSX/LyX.app/Contents/MacOS/lyxeditor
Jean-Marc Lasgouttes 3b6e50ea33 add the LyX/Mac skeleton to the repository
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10470 a592a061-630c-0410-9148-cb99ea01b6c8
2005-09-21 10:04:26 +00:00

16 lines
461 B
Bash
Executable File

#!/bin/sh
# ron@18james.com, 11 Dec 2003
lyxpipe=/Users/$USER/.lyx/.lyxpipe
if [ ! -p $lyxpipe.out ]
then
lyxprefs=`expr "$0" : '\(.*\)MacOS/lyxeditor'`Resources/lyx/preferences
lyxpipe=`perl -n -e 'print,exit if s/^.serverpipe\\s+\"(.+)\"/$1/;' ~/.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