LyX/Mac: Eliminating Installer

2007-12-31 Thread Bennett Helm
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

Re: LyX/Mac: Eliminating Installer

2007-12-31 Thread rgheck
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

Re: LyX/Mac: Eliminating Installer

2008-01-01 Thread Bennett Helm
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

Re: LyX/Mac: Eliminating Installer

2008-01-01 Thread Anders Ekberg
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

Re: LyX/Mac: Eliminating Installer

2008-01-01 Thread Bennett Helm
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

Re: LyX/Mac: Eliminating Installer

2008-01-02 Thread rgheck
${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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Jean-Marc Lasgouttes
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 >

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Jean-Marc Lasgouttes
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Jean-Marc Lasgouttes
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Andreas Vox
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Bennett Helm
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Bennett Helm
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Bennett Helm
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";

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Bennett Helm
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread rgheck
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Jean-Marc Lasgouttes
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Bennett Helm
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Jean-Marc Lasgouttes
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Bennett Helm
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

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread Andre Poenitz
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; >>>

Re: LyX/Mac: Eliminating Installer

2008-01-03 Thread rgheck
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

Re: LyX/Mac: Eliminating Installer

2008-03-20 Thread Jean-Marc Lasgouttes
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

Re: LyX/Mac: Eliminating Installer

2008-03-23 Thread Bennett Helm
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