diff options
author | DRC <dcommander@users.sourceforge.net> | 2010-01-08 09:53:21 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2010-01-08 09:53:21 +0000 |
commit | a4385e0a3d6b6843debb9057aafbb74616883a26 (patch) | |
tree | 291ae09ea1a3a8ea44e7312f310c996caf54c995 /unix | |
parent | 428507db40b06561b90c1b7d764a3f8b0ab500c8 (diff) | |
download | tigervnc-a4385e0a3d6b6843debb9057aafbb74616883a26.tar.gz tigervnc-a4385e0a3d6b6843debb9057aafbb74616883a26.zip |
Store module tarballs in a centralized location to avoid abusing ftp.x.org by downloading them every time we do a clean build
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3937 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix')
-rwxr-xr-x | unix/build-xorg-7.4 | 8 | ||||
-rwxr-xr-x | unix/download-xorg | 10 |
2 files changed, 13 insertions, 5 deletions
diff --git a/unix/build-xorg-7.4 b/unix/build-xorg-7.4 index e1fc83f2..3460f8e5 100755 --- a/unix/build-xorg-7.4 +++ b/unix/build-xorg-7.4 @@ -65,7 +65,7 @@ init() update_modules pushd xorg - tar jxf util-macros.tar.bz2 + tar jxf ~/.tigervnc-build/util-macros.tar.bz2 pushd util-macros-* echo "Building macros" ./configure ${1+"$@"} --prefix=${PREFIX} @@ -89,10 +89,10 @@ update_modules() pushd xorg ../download-xorg for module in ${modules}; do - tar jxf ${module}.tar.bz2 + tar jxf ~/.tigervnc-build/${module}.tar.bz2 done - tar jxf Mesa.tar.bz2 - tar jxf xorg-server.tar.bz2 + tar jxf ~/.tigervnc-build/Mesa.tar.bz2 + tar jxf ~/.tigervnc-build/xorg-server.tar.bz2 cp -r xorg-server-1.*/* ../xserver popd } diff --git a/unix/download-xorg b/unix/download-xorg index c42ec6bf..bb5dfb58 100755 --- a/unix/download-xorg +++ b/unix/download-xorg @@ -72,9 +72,17 @@ packages = { def main(): + dir = os.path.expanduser("~")+"/.tigervnc-build" + cwd = os.getcwd() + if not os.path.exists(dir): + os.mkdir(dir) + os.chdir(dir) + for pkg in packages.keys(): loc = packages[pkg] fname = pkg + ".tar.bz2" - assert 0 == os.spawnvp(os.P_WAIT, "wget", ["-N", "-c", "-O", fname, loc]) + if not os.path.exists(fname): + assert 0 == os.spawnvp(os.P_WAIT, "wget", ["-N", "-c", "-O", fname, loc]) + os.chdir(cwd) main() |