Filewatcher File Search
FTP Search
  
Directory 
  
Content Search 
   
pkg://povray-3.5_3.5.0c-10build1_i386.deb:580238/postinst  info  downloads

#! /bin/sh
# postinst script for povray-3.5
#
# see: dh_installdeb(1)

set -e

if test -e /usr/bin/povray && ! test -L /usr/bin/povray; then
	echo "Configuring povray-3.5 failed: /usr/bin/povray exists and is a file."
	echo "This is either a bug in povray-3.5, since povray-3.5 should conflict with any"
	echo "package containing /usr/bin/povray, or you have manually installed a binary"
	echo "to /usr/bin/povray. Aborting."

	exit 1
fi

update-alternatives --install /usr/bin/povray povray /usr/bin/povray-3.5 35 \
    --slave /usr/share/man/man1/povray.1.gz povray.1.gz \
   	 /usr/share/man/man1/povray-3.5.1.gz

# If the symlink was later removed, update-alternatives will not recreate it as
# long as the alternative itself is still existing. Fix that.
test -e /usr/bin/povray \
	|| ln -s /etc/alternatives/povray      /usr/bin
test -e /usr/share/man/man1/povray.1.gz \
	|| ln -s /etc/alternatives/povray.1.gz /usr/share/man/man1
# And a secondary link to the povray executable for PVM (the directory it's in
# should now exist)
test -e /usr/lib/pvm3/bin/LINUX/povray \
	|| ln -s /etc/alternatives/povray /usr/lib/pvm3/bin/LINUX

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2009 MARUHN Internet Solutions