Skip to content

Commit

Permalink
[JENKINS-38960 Follow-up] Switch to IconSet
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Oct 17, 2016
1 parent 00e1e44 commit ab64842
Show file tree
Hide file tree
Showing 8 changed files with 2,743 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -89,7 +89,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>cloudbees-folder</artifactId>
<version>5.12</version>
<version>5.14-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
Expand Down
19 changes: 19 additions & 0 deletions src/images/make-inkscape.sh
@@ -0,0 +1,19 @@
#!/bin/sh -e

dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
for src in "$dir"/*.svg
do
echo "Processing $(basename "$src")..."
file=$(basename "$src" | sed -e s/.svg/.png/ )
for sz in 16 24 32 48
do
mkdir -p "${dir}/../../src/main/webapp/images/${sz}x${sz}"
dst="${dir}/../../src/main/webapp/images/${sz}x${sz}/${file}"
if [ ! -e "$dst" -o "$src" -nt "$dst" ]
then
echo -n " generating ${sz}x${sz}..."
mkdir "${dir}/../../src/main/webapp/images/${sz}x${sz}" > /dev/null 2>&1 || true
inkscape -z -C -w ${sz} -h ${sz} -e "$dst" "$src" 2>&1 | grep "Bitmap saved as"
fi
done
done

0 comments on commit ab64842

Please sign in to comment.