#!/bin/sh
program=$0
prgpath=$(cd $(dirname $program) ; pwd -P)
( cd $prgpath
rm -f 2to3 ; if [ -x 2to3-2.7 -o -L 2to3-2.7 ] ; then ln -sf 2to3-2.7 2to3 ; fi
rm -f easy_install ; if [ -x easy_install-2.7 -o -L easy_install-2.7 ] ; then ln -sf easy_install-2.7 easy_install ; fi
rm -f idle ; if [ -x idle2 -o -L idle2 ] ; then ln -sf idle2 idle ; fi
rm -f pip ; if [ -x pip2 -o -L pip2 ] ; then ln -sf pip2 pip ; fi
rm -f pydoc ; if [ -x pydoc2 -o -L pydoc2 ] ; then ln -sf pydoc2 pydoc ; fi
rm -f pynche ; if [ -x pynche2 -o -L pynche2 ] ; then ln -sf pynche2 pynche ; fi
rm -f msgfmt.py ; if [ -x msgfmt-2.7.py -o -L msgfmt-2.7.py ] ; then ln -sf msgfmt-2.7.py msgfmt.py ; fi
rm -f pygettext.py ; if [ -x pygettext-2.7.py -o -L pygettext-2.7.py ] ; then ln -sf pygettext-2.7.py pygettext.py ; fi
rm -f python ; if [ -x python2 -o -L python2 ] ; then ln -sf python2 python ; fi
rm -f python-config ; if [ -x python2-config -o -L python2-config ] ; then ln -sf python2-config python-config ; fi
)