Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # -*-mode: python; coding: UTF-8 -*- |
| 3 | |
| 4 | import os |
| 5 | import glob |
DRC | 651189a | 2009-04-10 20:08:03 +0000 | [diff] [blame] | 6 | |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 7 | #INDI = "http://ftp.sunet.se/pub/X11/ftp.x.org/individual" |
| 8 | INDI = "http://ftp.x.org/pub/individual/" |
| 9 | PROTO = INDI + "proto/" |
| 10 | LIB = INDI + "lib/" |
| 11 | SERVER = INDI + "xserver/" |
| 12 | UTIL = INDI + "util/" |
| 13 | DATA = INDI + "data/" |
| 14 | APP = INDI + "app/" |
| 15 | |
| 16 | packages = { |
| 17 | "damageproto": PROTO + "damageproto-1.1.0.tar.bz2", |
| 18 | "fixesproto": PROTO + "fixesproto-4.0.tar.bz2", |
| 19 | "resourceproto": PROTO + "resourceproto-1.0.2.tar.bz2", |
| 20 | "fontsproto": PROTO + "fontsproto-2.0.2.tar.bz2", |
| 21 | "fontcacheproto" : PROTO + "fontcacheproto-0.1.2.tar.bz2", |
| 22 | "bigreqsproto": PROTO + "bigreqsproto-1.0.2.tar.bz2", |
| 23 | "kbproto": PROTO + "kbproto-1.0.3.tar.bz2", |
DRC | 0aefdc8 | 2011-04-30 05:07:31 +0000 | [diff] [blame] | 24 | "inputproto": PROTO + "inputproto-1.5.1.tar.bz2", |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 25 | "glproto": PROTO + "glproto-1.4.9.tar.bz2", |
| 26 | "xineramaproto": PROTO + "xineramaproto-1.1.2.tar.bz2", |
DRC | 0aefdc8 | 2011-04-30 05:07:31 +0000 | [diff] [blame] | 27 | "randrproto": PROTO + "randrproto-1.3.2.tar.bz2", |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 28 | "scrnsaverproto": PROTO + "scrnsaverproto-1.1.0.tar.bz2", |
| 29 | "renderproto": PROTO + "renderproto-0.9.3.tar.bz2", |
| 30 | "evieext": PROTO + "evieext-1.0.2.tar.bz2", |
| 31 | "xcmiscproto": PROTO + "xcmiscproto-1.1.2.tar.bz2", |
| 32 | "xextproto": PROTO + "xextproto-7.0.3.tar.bz2", |
| 33 | "xf86driproto": PROTO + "xf86driproto-2.0.4.tar.bz2", |
DRC | 3aefcbe | 2011-11-07 21:18:56 +0000 | [diff] [blame] | 34 | "dri2proto": PROTO + "dri2proto-2.1.tar.bz2", |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 35 | "compositeproto": PROTO + "compositeproto-0.4.tar.bz2", |
| 36 | "xf86vidmodeproto": PROTO + "xf86vidmodeproto-2.2.2.tar.bz2", |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 37 | "videoproto": PROTO + "videoproto-2.2.2.tar.bz2", |
| 38 | "xproto": PROTO + "xproto-7.0.13.tar.bz2", |
| 39 | |
| 40 | "libxkbfile": LIB + "libxkbfile-1.0.5.tar.bz2", |
| 41 | "libXxf86vm": LIB + "libXxf86vm-1.0.2.tar.bz2", |
| 42 | "libXext": LIB + "libXext-1.0.4.tar.bz2", |
| 43 | "libfontenc": LIB + "libfontenc-1.0.4.tar.bz2", |
| 44 | "libXau": LIB + "libXau-1.0.4.tar.bz2", |
| 45 | "libXfont": LIB + "libXfont-1.3.4.tar.bz2", |
| 46 | "libXfixes": LIB + "libXfixes-4.0.3.tar.bz2", |
| 47 | "libSM": LIB + "libSM-1.1.0.tar.bz2", |
| 48 | "libXi": LIB + "libXi-1.1.3.tar.bz2", |
| 49 | "libXmu": LIB + "libXmu-1.0.4.tar.bz2", |
| 50 | "libX11": LIB + "libX11-1.1.5.tar.bz2", |
| 51 | "libXdmcp": LIB + "libXdmcp-1.0.2.tar.bz2", |
| 52 | "xtrans": LIB + "xtrans-1.2.2.tar.bz2", |
| 53 | "libXt": LIB + "libXt-1.0.5.tar.bz2", |
| 54 | "libpciaccess": LIB + "libpciaccess-0.10.4.tar.bz2", |
| 55 | "libICE": LIB + "libICE-1.0.4.tar.bz2", |
DRC | 0aefdc8 | 2011-04-30 05:07:31 +0000 | [diff] [blame] | 56 | "pixman": LIB + "pixman-0.16.0.tar.bz2", |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 57 | "libXdamage": LIB + "libXdamage-1.1.1.tar.bz2", |
| 58 | |
| 59 | "util-macros": UTIL + "util-macros-1.1.6.tar.bz2", |
DRC | 0aefdc8 | 2011-04-30 05:07:31 +0000 | [diff] [blame] | 60 | "xorg-server": SERVER + "xorg-server-1.6.5.tar.bz2", |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 61 | |
| 62 | "libdrm": "http://dri.freedesktop.org/libdrm/libdrm-2.4.0.tar.bz2", |
| 63 | "Mesa": "http://downloads.sourceforge.net/mesa3d/MesaLib-7.2.tar.bz2", |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 64 | "libpthread-stubs": "http://xcb.freedesktop.org/dist/libpthread-stubs-0.1.tar.bz2", |
DRC | aff9efc | 2010-04-14 05:38:55 +0000 | [diff] [blame] | 65 | "freetype": "http://downloads.sourceforge.net/freetype/freetype-2.3.11.tar.bz2", |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | |
| 69 | |
| 70 | def main(): |
DRC | c9a103c | 2010-04-13 04:27:10 +0000 | [diff] [blame] | 71 | dir = os.path.expanduser("~")+"/.tigervnc-xorg-7.4" |
DRC | a4385e0 | 2010-01-08 09:53:21 +0000 | [diff] [blame] | 72 | cwd = os.getcwd() |
| 73 | if not os.path.exists(dir): |
| 74 | os.mkdir(dir) |
| 75 | os.chdir(dir) |
| 76 | |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 77 | for pkg in packages.keys(): |
| 78 | loc = packages[pkg] |
| 79 | fname = pkg + ".tar.bz2" |
DRC | a4385e0 | 2010-01-08 09:53:21 +0000 | [diff] [blame] | 80 | if not os.path.exists(fname): |
| 81 | assert 0 == os.spawnvp(os.P_WAIT, "wget", ["-N", "-c", "-O", fname, loc]) |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 82 | |
DRC | a4385e0 | 2010-01-08 09:53:21 +0000 | [diff] [blame] | 83 | os.chdir(cwd) |
Peter Åstrand | f045917 | 2009-03-18 14:45:46 +0000 | [diff] [blame] | 84 | main() |