summaryrefslogtreecommitdiff
path: root/bin/sanitize-image-links
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-02-27 22:30:54 +0100
committerJan Holesovsky <kendy@collabora.com>2014-02-27 22:33:28 +0100
commitae3164e66bdca48fdaa79bb0014e0fe99a82bc30 (patch)
treead5ea2cc368769b7896b52cede714a1809fbd6b5 /bin/sanitize-image-links
parent6d97cebf4c306a74c066a8295dae2f689ffdb3a6 (diff)
images: Add check for links.txt entries where neither icon exists.
And remove them from tango and tango_testing links.txt. Change-Id: I47cce64eac403bfaa8dd40f9e1878565bd8ae80f
Diffstat (limited to 'bin/sanitize-image-links')
-rwxr-xr-xbin/sanitize-image-links2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sanitize-image-links b/bin/sanitize-image-links
index b0e950ccd5ea..6b5a2ec485b0 100755
--- a/bin/sanitize-image-links
+++ b/bin/sanitize-image-links
@@ -25,6 +25,8 @@ for I in icon-themes/*/links.txt ; do
elif [ -f "$D/$LINK" ] ; then
echo "$I: swapping to right order: $ORIG $LINK" 1>&2
echo $ORIG $LINK
+ elif [ -n "$LINK" -a "${LINK:0:1}" != "#" -a ! -f "$D/$LINK" -a ! -f "$D/$ORIG" ] ; then
+ echo "$I: neither exists, removing the line: $LINK $ORIG" 1>&2
else
echo $LINK $ORIG
fi