summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-23 05:45:24 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-23 05:45:24 +0000
commitabba68b5249be54435515b2c8177b7867792eb28 (patch)
tree12c678aa64e4761ef621d4e3b2b17ca110dd6294
parent2ac3a1115b5af34e0d42ce7d908436fc1d0cdfc4 (diff)
downloadportage-abba68b5249be54435515b2c8177b7867792eb28.tar.gz
portage-abba68b5249be54435515b2c8177b7867792eb28.tar.bz2
portage-abba68b5249be54435515b2c8177b7867792eb28.zip
update syntax/style
svn path=/main/trunk/; revision=2770
-rwxr-xr-xbin/prepman22
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/prepman b/bin/prepman
index 9a3b66f3e..f81e200b9 100755
--- a/bin/prepman
+++ b/bin/prepman
@@ -14,33 +14,33 @@ if [[ ! -d ${z} ]] ; then
exit 0
fi
-for x in `find "${z}"/ -type d 2>/dev/null` ; do
- for y in `find "${x}"/ -mindepth 1 -maxdepth 1 \( -type f -or -type l \) ! -name '.keep' 2>/dev/null` ; do
- if [ -L "${y}" ] ; then
+for x in $(find "${z}"/ -type d 2>/dev/null) ; do
+ for y in $(find "${x}"/ -mindepth 1 -maxdepth 1 \( -type f -or -type l \) ! -name '.keep' 2>/dev/null) ; do
+ if [[ -L ${y} ]] ; then
# Symlink ...
- mylink="${y}"
- linkto="`readlink "${y}"`"
+ mylink=${y}
+ linkto=$(readlink "${y}")
# Do NOT change links to directories
- if [ -d "${z}/${linkto}" ] ; then
+ if [[ -d ${z}/${linkto} ]] ; then
continue
fi
-
- if [ "${linkto##*.}" != "gz" ] && [ "${linkto##*.}" != "bz2" ]; then
+
+ if [[ ${linkto##*.} != "gz" ]] && [[ ${linkto##*.} != "bz2" ]] ; then
linkto="${linkto}.gz"
fi
- if [ "${mylink##*.}" != "gz" ] && [ "${mylink##*.}" != "bz2" ]; then
+ if [[ ${mylink##*.} != "gz" ]] && [[ ${mylink##*.} != "bz2" ]] ; then
mylink="${mylink}.gz"
fi
echo "fixing man page symlink: ${mylink##*/}"
ln -snf "${linkto}" "${mylink}"
- if [ "${y}" != "${mylink}" ] ; then
+ if [[ ${y} != "${mylink}" ]] ; then
echo "removing old symlink: ${y##*/}"
rm -f "${y}"
fi
else
- if [ "${y##*.}" != "gz" ] && [ "${y##*.}" != "bz2" ] && [ ! -d "${y}" ]; then
+ if [[ ${y##*.} != "gz" ]] && [[ ${y##*.} != "bz2" ]] && [[ ! -d ${y} ]] ; then
echo "gzipping man page: ${y##*/}"
gzip -f -9 "${y}"
fi