[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] Platform, Quarks and stand-alones



P.S. not sure that those "cp" and "rm" .systemCmd things will work at
all on windows since those are unix commands.


2008/2/28, Dan Stowell <danstowell@xxxxxxxxx>:
> What's your motivation for the "useSymLinks" flag? Why not just check
>  whether or not we're on windows? That would automatically enforce the
>  consistency you mention.
>
>  Dan
>
>  2008/2/28, ronald kuivila <rkuivila@xxxxxxxxxxxx>:
>
> >  Hi Dan and Felix,
>  >
>  >  Seems like:
>  >
>  >
>  > if (useSymLinks) {
>  >  ("ln -s " +  (local.path ++ "/" ++ q.path).escapeChar($ ) +  (dirname ++
>  > "/" ++ q.path).escapeChar($ )).systemCmd;
>  > } {
>  >  ("cp -r" +  (local.path ++ "/" ++ q.path).escapeChar($ ) +  (dirname ++ "/"
>  > ++ q.path ).escapeChar($ )).systemCmd;
>  > };
>  >
>  > installs and
>  >
>  >
>  > ("rm -drf" +  (Platform.userExtensionDir ++ "/" ++ local.name ++ "/" ++
>  > q.path).escapeChar($ )).postln.systemCmd;
>  >
>  > deinstalls correctly.  Can anyone verify these will work in win32? (seems
>  > like they must)
>  >
>  > There is the question of what to do on update.  We could add
>  >
>  >  if (useSymLinks.not) { Quarks.installed.do { | q |
>  > Quarks.uninstall(q.name); Quarks.install(q.name) } }
>  >
>  > to Quarks:update.
>  >
>  > Finally,  I would propose that the setter of useSymLinks reinstall
>  > everything to force consistency (i.e., all quarks are installed installed
>  > the same
>  > way, as a symlink or a copy).
>  >
>  > RJK
>  >
>  >
>  >
>  >
>  >
>  > On Feb 27, 2008, at 5:01 PM, Dan Stowell wrote:
>  >
>  > 2008/2/27, felix <felix@xxxxxxxxxxxxxxxxxxx>:
>  > On Wed, Feb 27, 2008 at 7:22 AM, ronald kuivila <rkuivila@xxxxxxxxxxxx>
>  > wrote:
>  >
>  >
>  > 3. Insisting on symlinks  breaks the use of Quarks in win32. While Felix'
>  > and James' rant about win32 was entertaining,
>  >
>  >
>  >
>  >
>  > yes, and after the quip about the horse I suggested on windows we could
>  > simply copy the folder.
>  >
>  > so I already suggested the solution and I've suggested it before but still I
>  > have heard nothing.
>  >
>  > Cool, so let's do it. So installation needs a platformy-switch; does
>  > deinstallation? Deinstallation is (currently) by deleting a symlink;
>  > on Windows, would exactly the same mechanism work to delete the
>  > (copied) folder as well as its contents, or does it need something
>  > special, like the equivalent of "rm -rf"?
>  >
>  > Dan
>  > _______________________________________________
>  > Sc-devel mailing list
>  > Sc-devel@xxxxxxxxxxxxxxx
>  > http://lists.create.ucsb.edu/mailman/listinfo/sc-devel
>  >
>  >
>  >
>  > _______________________________________________
>  >  Sc-devel mailing list
>  >  Sc-devel@xxxxxxxxxxxxxxx
>  >  http://lists.create.ucsb.edu/mailman/listinfo/sc-devel
>  >
>  >
>
>
>
> --
>  http://www.mcld.co.uk
>


-- 
http://www.mcld.co.uk