Edit

IABSD.fr/ports/lang/python/2.1/pkg/DEINSTALL

Branch :

  • Show log

    Commit

  • Author : sturm
    Date : 2003-12-13 16:03:48
    Hash : e3158913
    Message : cleanup CHANGES.OpenBSD PREFIX -> LOCALBASE in Setup.tkinter set/remove links for pydoc in INSTALL/DEINSTALL

  • lang/python/2.1/pkg/DEINSTALL
  • #!/bin/sh
    #
    # $OpenBSD: DEINSTALL,v 1.2 2003/12/13 16:03:49 sturm Exp $
    #
    # Clean up python symlink, if it was ours.
    #
    
    set -e
    PATH=/bin
    PREFIX=${PKG_PREFIX:-/usr/local}
    
    if [ ${PREFIX}/bin/python -ef ${PREFIX}/bin/python2.1 ]
    then
    	rm -f ${PREFIX}/bin/python
    fi
    
    if [ ${PREFIX}/bin/pydoc -ef ${PREFIX}/bin/pydoc2.1 ]
    then
    	rm -f ${PREFIX}/bin/pydoc
    fi