ICU-678 check that /usr/lib/icu is a directory before cd'ing into it
X-SVN-Rev: 4778
This commit is contained in:
parent
7c860ec8fd
commit
77d6b3d159
@ -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)
|
||||
|
@ -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
|
||||
;;
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user