[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-users
Subject:    =?UTF-8?Q?Re=3A_Re=3A_Where_is_the_standard_installerf=C3=BCr_Lyx_1=2E6=2E?=
From:       Manveru <manveru () manveru ! pl>
Date:       2009-03-31 14:35:00
Message-ID: 936b14d20903310735s2cd3df30t324c469f25425ec () mail ! gmail ! com
[Download RAW message or body]

2009/3/31 Christian Ridderström <christian.ridderstrom@gmail.com>:
[...]
> I don't think the coding is the problem, but deciding what we want the
> algorithm to do...
>

I think filenames has their own format (formalized or not). So...

1) Anonymously log into ftp://ftp.lyx.org/
2) Change dir to /pub/lyx/bin
3) List directory to the array and take latest number in format x.y.z
(probably check x first and so on)
4) Change to that selected directory
5) For Jost's installer: List all files matching
LyX-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-Installer\.exe
    For Uwe's installer: List all files matching
LyX-[0-9]+-[0-9]+-[0-9]-AltInstaller-Complete\.exe
    to the array
6) Select files which have all numbers highest (x.y.z and xyz could be
ignored as they should match parent directory) and store its names.
7) Build URL for these two from ftp address + directory + filename
8) Glitch here - I do not think it is efficient to check the ftp every
time user reads the page, until ftp is served on the same machine - so
these values should be taken from some file prepared by script running
on cron.

Jost & Uwe: Please correct me if given regexps are wrong for names of
your installers.

Christian: I not not best at PHP currently, but as I mentioned elier
PHP should take data from file. I can write python script which checks
FTP and produces XML file for all binary installer (MacOS too)
containing latest version available in binary and url to it. You can
easily do a table with binaries on the page from such data - if you
want other format just tell me.

-- 
Manveru
jabber: manveru@manveru.pl
     gg: 1624001
   http://www.manveru.pl

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic