diff options
author | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2018-08-28 00:21:21 +0200 |
---|---|---|
committer | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2018-08-28 00:21:21 +0200 |
commit | 535ca5405ddecf4a81f02000ec4c16d799aac82c (patch) | |
tree | c5bd849767db3a1602f170eede4750fd643b5ede | |
parent | 1e65140c0d58ecba74b9f24835f829537b2ad0b5 (diff) | |
download | elementary-xfce-535ca5405ddecf4a81f02000ec4c16d799aac82c.tar.gz |
Make the output of the build scripts more readable
-rwxr-xr-x | Makefile.in | 12 | ||||
-rwxr-xr-x | svgtopng/pngtheme.sh | 18 |
2 files changed, 12 insertions, 18 deletions
diff --git a/Makefile.in b/Makefile.in index bd57efe5..2ff1ef6f 100755 --- a/Makefile.in +++ b/Makefile.in @@ -14,6 +14,7 @@ install: build cp -rf build/elementary-xfce-dark $(DESTDIR)/$(PREFIX)/share/icons cp -rf build/elementary-xfce-darker $(DESTDIR)/$(PREFIX)/share/icons cp -rf build/elementary-xfce-darkest $(DESTDIR)/$(PREFIX)/share/icons + @echo \nThe icon-theme cache has not yet been regenerated, which means your changes may not be visible yet. Please run 'make icon-caches' next. uninstall: rm -rf $(DESTDIR)/$(PREFIX)/share/icons/elementary-xfce @@ -29,11 +30,12 @@ icon-caches: build: builddir chmod +x ./svgtopng/pngtheme.sh - ./svgtopng/pngtheme.sh build/elementary-xfce - ./svgtopng/pngtheme.sh build/elementary-xfce-dark - ./svgtopng/pngtheme.sh build/elementary-xfce-darker - ./svgtopng/pngtheme.sh build/elementary-xfce-darkest - find build -type f -iname '*.png' | xargs optipng -strip all -silent + @./svgtopng/pngtheme.sh build/elementary-xfce + @./svgtopng/pngtheme.sh build/elementary-xfce-dark + @./svgtopng/pngtheme.sh build/elementary-xfce-darker + @./svgtopng/pngtheme.sh build/elementary-xfce-darkest + @echo == Optimizing all icon pngs + @find build -type f -iname '*.png' | xargs optipng -strip all -silent builddir: mkdir -p build diff --git a/svgtopng/pngtheme.sh b/svgtopng/pngtheme.sh index 83dbf098..7d7e44a1 100755 --- a/svgtopng/pngtheme.sh +++ b/svgtopng/pngtheme.sh @@ -14,26 +14,18 @@ fi cmd="svgtopng/svgtopng" -echo "===================================" +echo "== Processing $1" -echo "Creating png icons from svg files and symlinks" +echo " * Creating png icons from svg files and symlinks" #ignore list customized for elementary-xfce find "$icondir" -iname "*.svg" -not \( -wholename "*/scalable/*" -o -wholename "*/symbolic/*" -o -wholename "*/animations/*process-*" -o -wholename "*/animations/*gnome-spinner*" -o -wholename "*/animations*pk-action-refresh*" \) -exec $cmd {} + -echo "===================================" - -echo "Cleanup icon directory" +echo " * Cleanup icon directory" find "$icondir" -name "untitled folder" -type d -exec rm -rf {} + -echo "===================================" - -echo "Deleting svg files" +echo " * Deleting svg files" find "$icondir" -iname '*.svg' -not \( -wholename "*/scalable/*" -o -wholename "*/symbolic/*" -o -wholename "*/animations/*process-*" -o -wholename "*/animations/*gnome-spinner*" -o -wholename "*/animations*pk-action-refresh*" \) -delete -echo "===================================" - #ignore the output if the theme depends on another one (e.g. elementary-xfce-dark needs to be converted before elementary-xfce) -echo "Checking dangling symlinks" +echo " * Checking dangling symlinks" find -L "$icondir" -type l -exec /bin/ls -go {} \; - -echo "===================================" |