Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JENKINS-38960 Follow-up] We don't have the rights to use the Apache …
…Feather - The Maven Mascot is permitted to be used, so we will use the mascot
- Loading branch information
Showing
with
304 additions
and 0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.