I want to eliminate the installer for LyX/Mac. To this end, I have
created a shell script that will:
1. Test if the user's directory exists, and if not then: create a new
user's directory, copy files from the old one (if it exists), and
clean up the preferences file, mostly to point to the
Bennett Helm wrote:
I want to eliminate the installer for LyX/Mac. To this end, I have
created a shell script that will:
Is the idea that this shell script runs instead of the LyX executable?
I.e., that this will run every time someone wants to run LyX? If so,
that seems like a lot to do each
On Dec 31, 2007, at 6:14 PM, rgheck wrote:
Is the idea that this shell script runs instead of the LyX
executable? I.e., that this will run every time someone wants to
run LyX? If so, that seems like a lot to do each and every such
time. Not that it will take forever, but just that it seems
The first time I run LyX (or rather if there is no LyX-1.5-folder)
with this modification only the "old" file/folder creation in ~/
Library/Application support happens. The second time I run it the
examples get copied over, and the session file is created (could be
more, I haven't looked in
On Jan 1, 2008, at 6:58 PM, Anders Ekberg wrote:
The first time I run LyX (or rather if there is no LyX-1.5-folder)
with this modification only the "old" file/folder creation in ~/
Library/Application support happens. The second time I run it the
examples get copied over, and the session fil
${CURRENTDIR}/lyx-app &
(Do I need to pass any arguments to it?)
Yes, I'd suppose you should pass whatever arguments the script itself
received, so it should be something like:
${CURRENTDIR}/lyx-app $@ &
I think I'm right here that $@ is what you want: that one preserves quoting.
rh
rgheck <[EMAIL PROTECTED]> writes:
> One other small thing. Instead of the repeated directory creation
> stuff, what about something like this:
>function mkpath {
> base=shift;
> for dir in $*; do
> base="$base/$dir";
> if test -d $base; then continue; fi
>
Bennett Helm <[EMAIL PROTECTED]> writes:
> 1. Test if the user's directory exists, and if not then: create a new
> user's directory, copy files from the old one (if it exists), and
> clean up the preferences file, mostly to point to the new user's
> directory.
Instead of copying files (having sev
Bennett Helm <[EMAIL PROTECTED]> writes:
> This raises a question, though. Now, with no existing user's
> directory, this script will create it before launching LyX (i.e., lyx-
> app). However, once this is done, when lyx-app launches it does not
> display the splash document. Is there a neat way
Bennett Helm <[EMAIL PROTECTED]> writes:
> I think the attached script does the trick. It goes into .../LyX.app/
> Contents/MacOS/ and should be named "lyx". For it to work, the lyx
> executable must be renamed "lyx-app", and LyX.app/Contents/Info.plist
> needs to have the CFBundleExecutable
On Jan 3, 2008, at 5:09 AM, Jean-Marc Lasgouttes wrote:
Bennett Helm <[EMAIL PROTECTED]> writes:
1. Test if the user's directory exists, and if not then: create a new
user's directory, copy files from the old one (if it exists), and
clean up the preferences file, mostly to point to the new use
On Jan 2, 2008, at 6:01 AM, Andreas Vox wrote:
Bennett Helm <[EMAIL PROTECTED]> writes:
I think the attached script does the trick. It goes into .../LyX.app/
Contents/MacOS/ and should be named "lyx". For it to work, the lyx
executable must be renamed "lyx-app", and LyX.app/Contents/Info.plis
On Jan 3, 2008, at 5:07 AM, Jean-Marc Lasgouttes wrote:
rgheck <[EMAIL PROTECTED]> writes:
One other small thing. Instead of the repeated directory creation
stuff, what about something like this:
function mkpath {
base=shift;
for dir in $*; do
base="$base/$dir";
On Jan 3, 2008, at 5:13 AM, Jean-Marc Lasgouttes wrote:
Bennett Helm <[EMAIL PROTECTED]> writes:
This raises a question, though. Now, with no existing user's
directory, this script will create it before launching LyX (i.e.,
lyx-
app). However, once this is done, when lyx-app launches it doe
Jean-Marc Lasgouttes wrote:
rgheck <[EMAIL PROTECTED]> writes:
One other small thing. Instead of the repeated directory creation
stuff, what about something like this:
function mkpath {
base=shift;
for dir in $*; do
base="$base/$dir";
if test -d $base; then c
rgheck <[EMAIL PROTECTED]> writes:
> I was assuming the script was supposed to run on a very minimal shell.
> Is this always supported?
Seems to be on darwin.
JMarc
On Jan 3, 2008, at 10:08 AM, Jean-Marc Lasgouttes wrote:
rgheck <[EMAIL PROTECTED]> writes:
I was assuming the script was supposed to run on a very minimal
shell.
Is this always supported?
Seems to be on darwin.
It is on OS X 10.4, at least.
Bennett
Bennett Helm <[EMAIL PROTECTED]> writes:
> That sounds good. Perhaps configure.py could launch this script after
> it runs; wouldn't that be better than doing it after the user dir's
> creation?
>
> This is starting to give me second thoughts about whether linking
> rather than copying to files is
On Jan 3, 2008, at 10:05 AM, Jean-Marc Lasgouttes wrote:
Bennett Helm <[EMAIL PROTECTED]> writes:
That sounds good. Perhaps configure.py could launch this script after
it runs; wouldn't that be better than doing it after the user dir's
creation?
This is starting to give me second thoughts abo
On Thu, Jan 03, 2008 at 09:44:23AM -0500, rgheck wrote:
> Jean-Marc Lasgouttes wrote:
>> rgheck <[EMAIL PROTECTED]> writes:
>>
>>
>>> One other small thing. Instead of the repeated directory creation
>>> stuff, what about something like this:
>>>function mkpath {
>>> base=shift;
>>>
Andre Poenitz wrote:
On Thu, Jan 03, 2008 at 09:44:23AM -0500, rgheck wrote:
Jean-Marc Lasgouttes wrote:
rgheck <[EMAIL PROTECTED]> writes:
One other small thing. Instead of the repeated directory creation
stuff, what about something like this:
function mkpath {
bas
Bennett Helm <[EMAIL PROTECTED]> writes:
> 4. The second script deletes the existing default templates,
> examples, and tex files before it creates the links. This is because
> the LyX/Mac installer currently copies these files rather than
> creating links, so that the attempt to create a link wil
On Mar 20, 2008, at 7:49 AM, Jean-Marc Lasgouttes wrote:
Bennett Helm <[EMAIL PROTECTED]> writes:
4. The second script deletes the existing default templates,
examples, and tex files before it creates the links. This is because
the LyX/Mac installer currently copies these files rather than
crea
23 matches
Mail list logo