ICU-678 check that /usr/lib/icu is a directory before cd'ing into it

X-SVN-Rev: 4778
This commit is contained in:
Yves Arrouye 2001-05-23 23:04:10 +00:00
parent 7c860ec8fd
commit 77d6b3d159
6 changed files with 32 additions and 0 deletions

View File

@ -26,6 +26,9 @@ case "$1" in
configure)
# Adjust the current ICU link in /usr/lib/icu
if [ -d /usr/lib/icu ]
then
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
cd /usr/lib/icu
rm -f current
@ -50,6 +53,8 @@ case "$1" in
echo Compiling converters and aliases list from @sysconfdir@/icu/convrtrs.txt
/usr/sbin/gencnval @sysconfdir@/icu/convrtrs.txt
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)

View File

@ -19,6 +19,9 @@ case "$1" in
remove|upgrade|deconfigure)
# Adjust the current ICU link in /usr/lib/icu
if [ -d /usr/lib/icu ]
then
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/@VERSION@\//d' -e 's,.*/\([^/]*\)/$,\1,p' | head -1`
cd /usr/lib/icu
rm -f current
@ -26,6 +29,9 @@ case "$1" in
then
ln -s "$icucurrent" current
fi
fi
# install-info --quiet --remove /usr/info/foo.info.gz
;;

View File

@ -28,6 +28,9 @@ case "$1" in
# Adjust the current ICU link in /usr/lib/icu
if [ -d /usr/lib/icu ]
then
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
cd /usr/lib/icu
rm -f current
@ -35,6 +38,8 @@ case "$1" in
then
ln -s "$icucurrent" current
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)

View File

@ -19,6 +19,9 @@ case "$1" in
remove|upgrade|deconfigure)
# Adjust the current ICU link in /usr/lib/icu
if [ -d /usr/lib/icu ]
then
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/@VERSION@\//d' -e 's,.*/\([^/]*\)/$,\1,p' | head -1`
cd /usr/lib/icu
rm -f current
@ -26,6 +29,8 @@ case "$1" in
then
ln -s "$icucurrent" current
fi
fi
# install-info --quiet --remove /usr/info/foo.info.gz
;;
failed-upgrade)

View File

@ -26,6 +26,9 @@ case "$1" in
configure)
# Adjust the current ICU link in /usr/lib/icu
if [ -d /usr/lib/icu ]
then
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
cd /usr/lib/icu
rm -f current
@ -33,6 +36,8 @@ case "$1" in
then
ln -s "$icucurrent" current
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)

View File

@ -19,6 +19,9 @@ case "$1" in
remove|upgrade|deconfigure)
# Adjust the current ICU link in /usr/lib/icu
if [ -d /usr/lib/icu ]
then
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/@VERSION@\//d' -e 's,.*/\([^/]*\)/$,\1,p' | head -1`
cd /usr/lib/icu
rm -f current
@ -26,6 +29,9 @@ case "$1" in
then
ln -s "$icucurrent" current
fi
fi
# install-info --quiet --remove /usr/info/foo.info.gz
;;
failed-upgrade)