Lines Matching refs:DIR
65 for DIR in /usr/share/icons/*; do
66 if [ -a "$DIR/index.theme" ] ; then
67 if [ -a "$DIR/icon-theme.cache" ] ; then
68 RESULT=`${FIND_NEWER} -f -m -c --newer $DIR/icon-theme.cache $DIR 2>/dev/null`
70 RESULT=`/usr/bin/find $DIR -type d`
71 if [ ${#RESULT} == ${#DIR} ]; then
72 echo "$DIR doesn't contain subdirectories. No icon cache is needed"
80 echo "No icon cache found in $DIR. Generating one."
82 echo "Icons newer than the cache found in $DIR. Updating the cache."
84 rm -f $DIR/.icon-theme.cache
85 /usr/bin/gtk-update-icon-cache $DIR
88 generating the icon cache for $DIR."
90 echo "Icon cache successfully generated in $DIR"
107 for DIR in /usr/share/icons/*; do
108 if [ -a "$DIR/index.theme" ] ; then
109 if [ -a "$DIR/icon-theme.cache" ] ; then
110 rm -f $DIR/icon-theme.cache
111 RESULT=`/usr/bin/find $DIR ! -type d -follow 2>/dev/null`
113 RESULT=`/usr/bin/find $DIR -type d`
114 if [ ${#RESULT} == ${#DIR} ]; then
115 echo "$DIR doesn't contain subdirectories. No icon cache is needed"
123 echo "No icon cache found in $DIR. Generating one."
125 echo "Icons newer than the cache found in $DIR. Updating the cache."
127 rm -f $DIR/.icon-theme.cache
128 /usr/bin/gtk-update-icon-cache $DIR
131 generating the icon cache for $DIR."
133 echo "Icon cache successfully generated in $DIR"