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}
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
}
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()