Makefile: do not produce a sourcemap file when calling scss
[SaveMySugar/savemysugar-website.git] / project / favicon / to_ico.sh
1 #!/bin/sh
2
3 set -e
4
5 XCF_FILE="favicon.xcf"
6
7 BASENAME="$(basename "$XCF_FILE" .xcf)"
8
9 PPM_FILE="${BASENAME}.ppm"
10 PPM_FILE_4BPP="${BASENAME}_4bpp.ppm"
11 ICO_FILE="${BASENAME}.ico"
12
13 convert "$XCF_FILE" "$PPM_FILE"
14
15 ppmquant 16 "$PPM_FILE" > "$PPM_FILE_4BPP"
16 rm "$PPM_FILE"
17
18 ppmtowinicon "$PPM_FILE_4BPP" > "$ICO_FILE" 
19 rm "$PPM_FILE_4BPP"