|
@@ -14,7 +14,7 @@
|
|
|
# -> EPS generation
|
|
|
# 5. convert (ImageMagick)
|
|
|
# -> multi-resolution favicon creation
|
|
|
-# 6. python
|
|
|
+# 6. python3
|
|
|
# -> Custom script for generating the logo layouts from master SVG
|
|
|
# 7. pdftk
|
|
|
# -> PDF reproducible builds
|
|
@@ -52,11 +52,11 @@ ${BGS}: ${FILES}
|
|
|
scour -i "$<" -o "$@" --remove-descriptive-elements --enable-viewboxing --enable-id-stripping --enable-comment-stripping --shorten-ids --indent=none --no-line-breaks
|
|
|
|
|
|
%.1.svg: %.2.svg
|
|
|
- inkscape "--file=$<" --export-area-drawing "--export-plain-svg=$@"
|
|
|
+ inkscape "$<" --export-area-drawing --export-plain-svg "--export-filename=$@"
|
|
|
|
|
|
%.2.svg:
|
|
|
mkdir -p ${@D}
|
|
|
- cat master_template.svg | python proc-template.py "$(*F)" > "$@"
|
|
|
+ cat master_template.svg | python3 proc-template.py "$(*F)" > "$@"
|
|
|
|
|
|
%.png: %.1.png
|
|
|
pngcrush "$<" "$@"
|
|
@@ -71,12 +71,12 @@ ${BGS}: ${FILES}
|
|
|
mode="$${BASH_REMATCH[1]}"
|
|
|
dim="$${BASH_REMATCH[2]}"
|
|
|
if [ "$$mode" == "h" ] ; then
|
|
|
- inkscape "--file=$<" "--export-png=$@" "--export-height=$$dim"
|
|
|
+ inkscape "$<" --export-type="png" "--export-filename=$@" "--export-height=$$dim"
|
|
|
else
|
|
|
- inkscape "--file=$<" "--export-png=$@" "--export-width=$$dim"
|
|
|
+ inkscape "$<" --export-type="png" "--export-filename=$@" "--export-width=$$dim"
|
|
|
fi
|
|
|
else
|
|
|
- inkscape "--file=$<" "--export-png=$@"
|
|
|
+ inkscape "$<" --export-type="png" "--export-filename=$@"
|
|
|
fi
|
|
|
|
|
|
%.pdf: %.1.pdf
|
|
@@ -86,13 +86,13 @@ ${BGS}: ${FILES}
|
|
|
ps2pdf -dEPSCrop "$<" "$@"
|
|
|
|
|
|
%.2.pdf: %.svg
|
|
|
- inkscape "--file=$<" "--export-eps=$@"
|
|
|
+ inkscape "$<" --export-type="pdf" "--export-filename=$@"
|
|
|
|
|
|
%.eps: %.1.eps
|
|
|
cat "$<" | ps2eps | sed -e ':a;N;$$!ba;s/\n%%CreationDate:[^\n]\+\n/\n/g' > "$@"
|
|
|
|
|
|
%.1.eps: %.svg
|
|
|
- inkscape "--file=$<" "--export-eps=$@"
|
|
|
+ inkscape "$<" --export-type="eps" "--export-filename=$@"
|
|
|
|
|
|
TMPICONSRC := ${ICONDIR}/tmp-favicon-icon-clearbg.svg
|
|
|
COMMA := ,
|
|
@@ -111,7 +111,7 @@ ${ICONDIR}/%-icon.svg: ${TMPICONSRC}
|
|
|
convert -density 384 -background transparent "${TMPICONSRC}" -flatten -colors 256 -define "icon:auto-resize=$(subst ${SPACE},${COMMA},${SIMPLEICONSIZES})" "$@"
|
|
|
|
|
|
${ICONDIR}/%.1.png: ${TMPICONSRC}
|
|
|
- inkscape "--file=${TMPICONSRC}" "--export-width=$(subst .1.png,,$(subst ${ICONDIR}/${FILEPREFIX}-icon-,,$@))" "--export-height=$(subst .1.png,,$(subst ${ICONDIR}/${FILEPREFIX}-icon-,,$@))" "--export-png=$@"
|
|
|
+ inkscape "${TMPICONSRC}" "--export-width=$(subst .1.png,,$(subst ${ICONDIR}/${FILEPREFIX}-icon-,,$@))" "--export-height=$(subst .1.png,,$(subst ${ICONDIR}/${FILEPREFIX}-icon-,,$@))" --export-type="png" "--export-filename=$@"
|
|
|
|
|
|
.PHONY: clean
|
|
|
clean:
|