eae540764e
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>
35 lines
1.1 KiB
Text
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
|
|
# ******************************************************************************
|
|
|