freebsd-ports/multimedia/tovid/files/patch-src_tovid-init.in
Jeremy Messenger eae540764e Fix the runtime when anyone has symlink of /usr/X11R6. The script will finding
two tovid then not allow users to run it. Bump the PORTREVISION.

$ tovid
Found 2 installations of tovid on your system!
I won't run until there is only one of me :)
Installed versions:
   /usr/local/bin/tovid
   /usr/X11R6/bin/tovid
Exiting...

Reported by:	Andy Fawcett <andy@athame.co.uk>
2007-08-12 15:58:36 +00:00

35 lines
1.1 KiB
Text

--- src/tovid-init.in.orig 2007-08-12 10:09:50.000000000 -0500
+++ src/tovid-init.in 2007-08-12 10:10:37.000000000 -0500
@@ -386,32 +386,6 @@
# ******************************************************************************
-# Find multiple version kludge
-# ******************************************************************************
-INSTALLED_TOVIDS=$(type -a tovid 2>>/dev/null | awk '{print $NF}' | tr '\n' ' ')
-NUM_INSTALLED=0
-
-# Only count non-links
-for tovid in $INSTALLED_TOVIDS; do
- if ! test -L $tovid; then
- let "NUM_INSTALLED=NUM_INSTALLED+1"
- fi
-done
-
-# Exit when there is more than one tovid installed
-if test $NUM_INSTALLED -ne 1; then
- echo "Found $NUM_INSTALLED installations of tovid on your system!"
- echo "I won't run until there is only one of me :)"
- echo "Installed versions:"
- for version in $INSTALLED_TOVIDS; do
- echo " $version"
- done
- echo "Exiting..."
- exit 1
-fi
-
-
-# ******************************************************************************
# tovid home setup
# ******************************************************************************