diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-02-27 22:30:54 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-02-27 22:33:28 +0100 |
commit | ae3164e66bdca48fdaa79bb0014e0fe99a82bc30 (patch) | |
tree | ad5ea2cc368769b7896b52cede714a1809fbd6b5 /bin/sanitize-image-links | |
parent | 6d97cebf4c306a74c066a8295dae2f689ffdb3a6 (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-x | bin/sanitize-image-links | 2 |
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 |