CWD=`pwd` cd /tmp tar xzvf $CWD/py152.tgz cd Python-1.5.2 mkdir /usr/doc/python-1.5.2 cp -a README /usr/doc/python-1.5.2 cp -a Misc /usr/doc/python-1.5.2 ( cd /usr/doc/python-1.5.2 ; mkdir html ) ( cd /usr/doc/python-1.5.2 ; tar xzvf $CWD/html-1.5.2.tgz ) chown -R root.root /usr/doc/python-1.5.2 cp Modules/Setup.in Modules/Setup zcat $CWD/python-tkinter.diff.gz | patch -E -p0 --verbose --backup zcat $CWD/python-readline.diff.gz | patch -E -p0 --verbose --backup zcat $CWD/python-miscmodules.diff.gz | patch -E -p0 --verbose --backup zcat $CWD/python-shared.diff.gz | patch -E -p0 --verbose --backup ./configure --prefix=/usr \ --with-thread make OPT=-O2 make OPT=-O2 install