Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

3 changed files with 12 additions and 18 deletions

View File

@ -6,5 +6,4 @@ for now it only lists what icons you have (apps that need it and your icon pack)
this is a WIP project, so, don't take this seriously for now. this is a WIP project, so, don't take this seriously for now.
this program is free software. It is licensed under the GNU AGPL v3 license. see LICENSE this program is free software. It is licensed under the GNU AGPL v3 license. see LICENSE ![agpl image](https://www.gnu.org/graphics/agplv3-with-text-162x68.png)
![agpl image](https://www.gnu.org/graphics/agplv3-with-text-162x68.png)

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# This file is part of IconToaster # This file is part of missing-icon-reporter
# and it's AGPLv3 licensed. # and it's AGPLv3 licensed.
desktopsearch () { desktopsearch () {
@ -11,7 +11,7 @@ desktopsearch () {
iconsearch () { iconsearch () {
local icon_pack=$1 local icon_pack=$1
if [ -z $icon_pack ]; then if [ -z $icon_pack ]; then
echo "IconToaster requires an icon pack as an argument." 1>&2 echo "iconsearch requires a icon pack." 1>&2
exit 1; exit 1;
fi fi
for icon in $(find ~/.icons/$icon_pack -name '*.png'); for icon in $(find ~/.icons/$icon_pack -name '*.png');
@ -26,7 +26,7 @@ iconsearch () {
compare_desktop_and_icons() { compare_desktop_and_icons() {
local icon_pack=$1 local icon_pack=$1
if [ -z $icon_pack ]; then if [ -z $icon_pack ]; then
echo "IconToaster requires an icon pack as an argument." 1>&2 echo "iconsearch requires a icon pack." 1>&2
exit 1; exit 1;
fi fi
perl <(cat <<'EOF' perl <(cat <<'EOF'
@ -46,7 +46,7 @@ sub color_wrapper {
} }
color_wrapper('yellow'); color_wrapper('yellow');
say 'This is IconToaster'; say 'This is the Toasters Icon Pack Missing Icons Tool';
color_wrapper('reset'); color_wrapper('reset');
my $desktop_search_file = $ARGV[0]; my $desktop_search_file = $ARGV[0];
@ -62,10 +62,10 @@ close $desktop_filehandle;
open my $icon_filehandle, '<', $icon_search_file; open my $icon_filehandle, '<', $icon_search_file;
color_wrapper('blue'); color_wrapper('red');
say << 'EOS'; say << 'EOS';
In both your icon pack and system: Known Icons:
------------- -------------
EOS EOS
color_wrapper('reset'); color_wrapper('reset');
@ -79,7 +79,7 @@ close $icon_filehandle;
color_wrapper('red'); color_wrapper('red');
say << 'EOS'; say << 'EOS';
Missing (In your system and not in your icon pack): Missing icons:
------------- -------------
EOS EOS
color_wrapper('reset'); color_wrapper('reset');
@ -88,10 +88,10 @@ for my $key (keys %desktop_relation) {
say $key; say $key;
} }
} }
color_wrapper('green'); color_wrapper('red');
say << 'EOS'; say << 'EOS';
Unused icons from your icon pack: Not missing in your system icons:
------------- -------------
EOS EOS
color_wrapper('reset'); color_wrapper('reset');

View File

@ -1,13 +1,8 @@
#! /bin/bash #! /bin/bash
# This file is part of IconToaster # This file is part of missing-icon-reporter
# and it's AGPLv3 licensed. # and it's AGPLv3 licensed.
# Launch this script with an argument containing the icon pack
# for example, if you want to test aleta, you must write
# ./missing.sh aleta
# Note that for now only icon packs in ~/.icons are testable.
script_path=$(dirname $0) script_path=$(dirname $0)
script_name=$(basename $0) script_name=$(basename $0)
icon_pack=$1 icon_pack=$1
@ -15,7 +10,7 @@ icon_pack=$1
. "$script_path/functions.sh" . "$script_path/functions.sh"
if [ -z $icon_pack ]; then if [ -z $icon_pack ]; then
echo "$script_name requires an icon pack as an argument." 1>&2 echo "$script_name requires a icon pack." 1>&2
exit 1; exit 1;
fi fi