mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Let the user know about itcl installations, too.
This commit is contained in:
parent
7ab809f56b
commit
b766e9ce16
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29019
@ -3,14 +3,17 @@
|
||||
# The user may have a tclsh they want to preserve
|
||||
ver=`grep -a awieYJFnsuILOnfsYEW ${PKG_PREFIX}/bin/tclsh 2> /dev/null \
|
||||
| sed -e 's/.*\*\*//'`
|
||||
if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 001 ]
|
||||
if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 002 ]
|
||||
then
|
||||
[ -f ${PKG_PREFIX}/bin/tclsh ] && chmod u+w ${PKG_PREFIX}/bin/tclsh
|
||||
|
||||
mkdir -p ${PKG_PREFIX}/bin
|
||||
cat > ${PKG_PREFIX}/bin/tclsh <<'EOF'
|
||||
#!/bin/sh
|
||||
# Installed by ports system. id: awieYJFnsuILOnfsYEW**001
|
||||
# Installed by ports system. id: awieYJFnsuILOnfsYEW**002
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
(
|
||||
echo "In FreeBSD, tclsh is named with a version number. This is because"
|
||||
@ -20,7 +23,7 @@ echo "installed because a given port may depend on a specific version."
|
||||
echo
|
||||
echo "On your system, tclsh is installed under at least the following names:"
|
||||
echo
|
||||
for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
|
||||
for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^i?tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
|
||||
do
|
||||
echo $name
|
||||
done
|
||||
|
@ -3,14 +3,17 @@
|
||||
# The user may have a tclsh they want to preserve
|
||||
ver=`grep -a awieYJFnsuILOnfsYEW ${PKG_PREFIX}/bin/tclsh 2> /dev/null \
|
||||
| sed -e 's/.*\*\*//'`
|
||||
if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 001 ]
|
||||
if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 002 ]
|
||||
then
|
||||
[ -f ${PKG_PREFIX}/bin/tclsh ] && chmod u+w ${PKG_PREFIX}/bin/tclsh
|
||||
|
||||
mkdir -p ${PKG_PREFIX}/bin
|
||||
cat > ${PKG_PREFIX}/bin/tclsh <<'EOF'
|
||||
#!/bin/sh
|
||||
# Installed by ports system. id: awieYJFnsuILOnfsYEW**001
|
||||
# Installed by ports system. id: awieYJFnsuILOnfsYEW**002
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
(
|
||||
echo "In FreeBSD, tclsh is named with a version number. This is because"
|
||||
@ -20,7 +23,7 @@ echo "installed because a given port may depend on a specific version."
|
||||
echo
|
||||
echo "On your system, tclsh is installed under at least the following names:"
|
||||
echo
|
||||
for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
|
||||
for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^i?tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
|
||||
do
|
||||
echo $name
|
||||
done
|
||||
|
@ -3,14 +3,17 @@
|
||||
# The user may have a tclsh they want to preserve
|
||||
ver=`grep -a awieYJFnsuILOnfsYEW ${PKG_PREFIX}/bin/tclsh 2> /dev/null \
|
||||
| sed -e 's/.*\*\*//'`
|
||||
if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 001 ]
|
||||
if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 002 ]
|
||||
then
|
||||
[ -f ${PKG_PREFIX}/bin/tclsh ] && chmod u+w ${PKG_PREFIX}/bin/tclsh
|
||||
|
||||
mkdir -p ${PKG_PREFIX}/bin
|
||||
cat > ${PKG_PREFIX}/bin/tclsh <<'EOF'
|
||||
#!/bin/sh
|
||||
# Installed by ports system. id: awieYJFnsuILOnfsYEW**001
|
||||
# Installed by ports system. id: awieYJFnsuILOnfsYEW**002
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
(
|
||||
echo "In FreeBSD, tclsh is named with a version number. This is because"
|
||||
@ -20,7 +23,7 @@ echo "installed because a given port may depend on a specific version."
|
||||
echo
|
||||
echo "On your system, tclsh is installed under at least the following names:"
|
||||
echo
|
||||
for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
|
||||
for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^i?tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
|
||||
do
|
||||
echo $name
|
||||
done
|
||||
|
@ -3,14 +3,17 @@
|
||||
# The user may have a tclsh they want to preserve
|
||||
ver=`grep -a awieYJFnsuILOnfsYEW ${PKG_PREFIX}/bin/tclsh 2> /dev/null \
|
||||
| sed -e 's/.*\*\*//'`
|
||||
if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 001 ]
|
||||
if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 002 ]
|
||||
then
|
||||
[ -f ${PKG_PREFIX}/bin/tclsh ] && chmod u+w ${PKG_PREFIX}/bin/tclsh
|
||||
|
||||
mkdir -p ${PKG_PREFIX}/bin
|
||||
cat > ${PKG_PREFIX}/bin/tclsh <<'EOF'
|
||||
#!/bin/sh
|
||||
# Installed by ports system. id: awieYJFnsuILOnfsYEW**001
|
||||
# Installed by ports system. id: awieYJFnsuILOnfsYEW**002
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
(
|
||||
echo "In FreeBSD, tclsh is named with a version number. This is because"
|
||||
@ -20,7 +23,7 @@ echo "installed because a given port may depend on a specific version."
|
||||
echo
|
||||
echo "On your system, tclsh is installed under at least the following names:"
|
||||
echo
|
||||
for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
|
||||
for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^i?tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
|
||||
do
|
||||
echo $name
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user