|
|
40c633 |
###############################################################################
|
|
|
40c633 |
#
|
|
|
40c633 |
# The CentOS Rolling Notes Makefile
|
|
|
40c633 |
# Copyright (C) 2019 Alain Reguera Delgado
|
|
|
40c633 |
#
|
|
|
40c633 |
# This program is free software: you can redistribute it and/or modify it
|
|
|
40c633 |
# under the terms of the GNU General Public License as published by the Free
|
|
|
40c633 |
# Software Foundation, either version 3 of the License, or (at your option)
|
|
|
40c633 |
# any later version.
|
|
|
40c633 |
#
|
|
|
40c633 |
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
40c633 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
40c633 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
40c633 |
# more details.
|
|
|
40c633 |
#
|
|
|
40c633 |
# You should have received a copy of the GNU General Public License along
|
|
|
40c633 |
# with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
40c633 |
#
|
|
|
40c633 |
###############################################################################
|
|
|
40c633 |
|
|
|
40c633 |
#==============================================================================
|
|
|
40c633 |
# Configuration
|
|
|
40c633 |
#==============================================================================
|
|
|
bc8923 |
lang = en-US
|
|
|
40c633 |
srcdir = SVG
|
|
|
40c633 |
prefix = PNG
|
|
|
40c633 |
datarootdir = $(prefix)/$(lang)
|
|
|
40c633 |
localedir = PO
|
|
|
40c633 |
|
|
|
40c633 |
#==============================================================================
|
|
|
40c633 |
# Requirements
|
|
|
40c633 |
#==============================================================================
|
|
|
40c633 |
all: \
|
|
|
40c633 |
$(localedir)/$(lang).pot \
|
|
|
40c633 |
$(localedir)/$(lang).po \
|
|
|
40c633 |
$(datarootdir)/01-centos-welcome.png \
|
|
|
40c633 |
$(datarootdir)/02-centos-sig-core.png \
|
|
|
40c633 |
$(datarootdir)/03-centos-sig-altarch.png \
|
|
|
40c633 |
$(datarootdir)/04-centos-sig-artwork.png \
|
|
|
40c633 |
$(datarootdir)/05-centos-sig-atomic.png \
|
|
|
40c633 |
$(datarootdir)/06-centos-sig-cloud.png \
|
|
|
40c633 |
$(datarootdir)/07-centos-sig-cloudinstance.png \
|
|
|
40c633 |
$(datarootdir)/08-centos-sig-cm.png \
|
|
|
40c633 |
$(datarootdir)/09-centos-sig-nfv.png \
|
|
|
40c633 |
$(datarootdir)/10-centos-sig-optools.png \
|
|
|
40c633 |
$(datarootdir)/11-centos-sig-paas.png \
|
|
|
40c633 |
$(datarootdir)/12-centos-sig-promo.png \
|
|
|
40c633 |
$(datarootdir)/13-centos-sig-publicci.png \
|
|
|
40c633 |
$(datarootdir)/14-centos-sig-sc.png \
|
|
|
40c633 |
$(datarootdir)/15-centos-sig-storage.png \
|
|
|
40c633 |
$(datarootdir)/16-centos-sig-virt.png
|
|
|
40c633 |
|
|
|
40c633 |
#======================================================================
|
|
|
40c633 |
# Translations
|
|
|
40c633 |
#======================================================================
|
|
|
40c633 |
$(localedir)/$(lang).pot: $(srcdir)/*.svg
|
|
|
40c633 |
xml2po -o /tmp/$(lang).pot $(srcdir)/*.svg
|
|
|
40c633 |
if [[ ! -f $(localedir)/$(lang).pot ]];then \
|
|
|
40c633 |
msginit -i /tmp/$(lang).pot -o $(localedir)/$(lang).pot -l $(lang) --no-translator --width=80; \
|
|
|
40c633 |
else \
|
|
|
40c633 |
msgmerge -U $(localedir)/$(lang).pot /tmp/$(lang).pot; \
|
|
|
40c633 |
fi
|
|
|
40c633 |
$(localedir)/$(lang).po: $(localedir)/$(lang).pot
|
|
|
40c633 |
if [[ ! -f $(localedir)/$(lang).po ]];then \
|
|
|
40c633 |
msginit -i $(localedir)/$(lang).pot -o $(localedir)/$(lang).po -l $(lang) --no-translator --width=80; \
|
|
|
40c633 |
else \
|
|
|
40c633 |
msgmerge -U $(localedir)/$(lang).po $(localedir)/$(lang).pot; \
|
|
|
40c633 |
fi
|
|
|
40c633 |
|
|
|
40c633 |
#======================================================================
|
|
|
40c633 |
# Images
|
|
|
40c633 |
#======================================================================
|
|
|
40c633 |
$(datarootdir):
|
|
|
40c633 |
mkdir -p $(datarootdir)
|
|
|
40c633 |
$(datarootdir)/01-centos-welcome.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/01-centos-welcome.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/01-centos-welcome.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/01-centos-welcome.svg $(srcdir)/01-centos-welcome.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/01-centos-welcome.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/01-centos-welcome.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/01-centos-welcome.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/01-centos-welcome.png /tmp/01-centos-welcome.svg
|
|
|
40c633 |
rm /tmp/01-centos-welcome.svg
|
|
|
40c633 |
$(datarootdir)/02-centos-sig-core.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/02-centos-sig-core.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/02-centos-sig-core.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/02-centos-sig-core.svg $(srcdir)/02-centos-sig-core.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/02-centos-sig-core.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/02-centos-sig-core.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/02-centos-sig-core.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/02-centos-sig-core.png /tmp/02-centos-sig-core.svg
|
|
|
40c633 |
rm /tmp/02-centos-sig-core.svg
|
|
|
40c633 |
$(datarootdir)/03-centos-sig-altarch.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/03-centos-sig-altarch.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/03-centos-sig-altarch.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/03-centos-sig-altarch.svg $(srcdir)/03-centos-sig-altarch.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/03-centos-sig-altarch.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/03-centos-sig-altarch.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/03-centos-sig-altarch.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/03-centos-sig-altarch.png /tmp/03-centos-sig-altarch.svg
|
|
|
40c633 |
rm /tmp/03-centos-sig-altarch.svg
|
|
|
40c633 |
$(datarootdir)/04-centos-sig-artwork.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/04-centos-sig-artwork.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/04-centos-sig-artwork.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/04-centos-sig-artwork.svg $(srcdir)/04-centos-sig-artwork.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/04-centos-sig-artwork.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/04-centos-sig-artwork.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/04-centos-sig-artwork.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/04-centos-sig-artwork.png /tmp/04-centos-sig-artwork.svg
|
|
|
40c633 |
rm /tmp/04-centos-sig-artwork.svg
|
|
|
40c633 |
$(datarootdir)/05-centos-sig-atomic.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/05-centos-sig-atomic.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/05-centos-sig-atomic.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/05-centos-sig-atomic.svg $(srcdir)/05-centos-sig-atomic.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/05-centos-sig-atomic.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/05-centos-sig-atomic.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/05-centos-sig-atomic.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/05-centos-sig-atomic.png /tmp/05-centos-sig-atomic.svg
|
|
|
40c633 |
rm /tmp/05-centos-sig-atomic.svg
|
|
|
40c633 |
$(datarootdir)/06-centos-sig-cloud.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/06-centos-sig-cloud.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/06-centos-sig-cloud.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/06-centos-sig-cloud.svg $(srcdir)/06-centos-sig-cloud.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/06-centos-sig-cloud.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/06-centos-sig-cloud.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/06-centos-sig-cloud.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/06-centos-sig-cloud.png /tmp/06-centos-sig-cloud.svg
|
|
|
40c633 |
rm /tmp/06-centos-sig-cloud.svg
|
|
|
40c633 |
$(datarootdir)/07-centos-sig-cloudinstance.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/07-centos-sig-cloudinstance.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/07-centos-sig-cloudinstance.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/07-centos-sig-cloudinstance.svg $(srcdir)/07-centos-sig-cloudinstance.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/07-centos-sig-cloudinstance.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/07-centos-sig-cloudinstance.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/07-centos-sig-cloudinstance.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/07-centos-sig-cloudinstance.png /tmp/07-centos-sig-cloudinstance.svg
|
|
|
40c633 |
rm /tmp/07-centos-sig-cloudinstance.svg
|
|
|
40c633 |
$(datarootdir)/08-centos-sig-cm.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/08-centos-sig-cm.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/08-centos-sig-cm.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/08-centos-sig-cm.svg $(srcdir)/08-centos-sig-cm.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/08-centos-sig-cm.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/08-centos-sig-cm.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/08-centos-sig-cm.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/08-centos-sig-cm.png /tmp/08-centos-sig-cm.svg
|
|
|
40c633 |
rm /tmp/08-centos-sig-cm.svg
|
|
|
40c633 |
$(datarootdir)/09-centos-sig-nfv.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/09-centos-sig-nfv.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/09-centos-sig-nfv.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/09-centos-sig-nfv.svg $(srcdir)/09-centos-sig-nfv.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/09-centos-sig-nfv.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/09-centos-sig-nfv.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/09-centos-sig-nfv.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/09-centos-sig-nfv.png /tmp/09-centos-sig-nfv.svg
|
|
|
40c633 |
rm /tmp/09-centos-sig-nfv.svg
|
|
|
40c633 |
$(datarootdir)/10-centos-sig-optools.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/10-centos-sig-optools.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/10-centos-sig-optools.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/10-centos-sig-optools.svg $(srcdir)/10-centos-sig-optools.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/10-centos-sig-optools.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/10-centos-sig-optools.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/10-centos-sig-optools.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/10-centos-sig-optools.png /tmp/10-centos-sig-optools.svg
|
|
|
40c633 |
rm /tmp/10-centos-sig-optools.svg
|
|
|
40c633 |
$(datarootdir)/11-centos-sig-paas.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/11-centos-sig-paas.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/11-centos-sig-paas.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/11-centos-sig-paas.svg $(srcdir)/11-centos-sig-paas.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/11-centos-sig-paas.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/11-centos-sig-paas.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/11-centos-sig-paas.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/11-centos-sig-paas.png /tmp/11-centos-sig-paas.svg
|
|
|
40c633 |
rm /tmp/11-centos-sig-paas.svg
|
|
|
40c633 |
$(datarootdir)/12-centos-sig-promo.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/12-centos-sig-promo.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/12-centos-sig-promo.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/12-centos-sig-promo.svg $(srcdir)/12-centos-sig-promo.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/12-centos-sig-promo.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/12-centos-sig-promo.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/12-centos-sig-promo.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/12-centos-sig-promo.png /tmp/12-centos-sig-promo.svg
|
|
|
40c633 |
rm /tmp/12-centos-sig-promo.svg
|
|
|
40c633 |
$(datarootdir)/13-centos-sig-publicci.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/13-centos-sig-publicci.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/13-centos-sig-publicci.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/13-centos-sig-publicci.svg $(srcdir)/13-centos-sig-publicci.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/13-centos-sig-publicci.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/13-centos-sig-publicci.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/13-centos-sig-publicci.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/13-centos-sig-publicci.png /tmp/13-centos-sig-publicci.svg
|
|
|
40c633 |
rm /tmp/13-centos-sig-publicci.svg
|
|
|
40c633 |
$(datarootdir)/14-centos-sig-sc.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/14-centos-sig-sc.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/14-centos-sig-sc.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/14-centos-sig-sc.svg $(srcdir)/14-centos-sig-sc.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/14-centos-sig-sc.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/14-centos-sig-sc.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/14-centos-sig-sc.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/14-centos-sig-sc.png /tmp/14-centos-sig-sc.svg
|
|
|
40c633 |
rm /tmp/14-centos-sig-sc.svg
|
|
|
40c633 |
$(datarootdir)/15-centos-sig-storage.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/15-centos-sig-storage.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/15-centos-sig-storage.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/15-centos-sig-storage.svg $(srcdir)/15-centos-sig-storage.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/15-centos-sig-storage.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/15-centos-sig-storage.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/15-centos-sig-storage.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/15-centos-sig-storage.png /tmp/15-centos-sig-storage.svg
|
|
|
40c633 |
rm /tmp/15-centos-sig-storage.svg
|
|
|
40c633 |
$(datarootdir)/16-centos-sig-virt.png: $(datarootdir) $(localedir)/$(lang).po $(srcdir)/16-centos-sig-virt.svg
|
|
|
40c633 |
xmllint -noout $(srcdir)/16-centos-sig-virt.svg
|
|
|
40c633 |
xml2po -p $(localedir)/$(lang).po -o /tmp/16-centos-sig-virt.svg $(srcdir)/16-centos-sig-virt.svg
|
|
|
9a3451 |
ifeq ($(lang),zh-CN)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK SC/g' /tmp/16-centos-sig-virt.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-HK)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK HK/g' /tmp/16-centos-sig-virt.svg
|
|
|
9a3451 |
endif
|
|
|
9a3451 |
ifeq ($(lang),zh-TW)
|
|
|
9a3451 |
sed -i 's/font-family:Overpass/font-family:Noto Sans CJK TC/g' /tmp/16-centos-sig-virt.svg
|
|
|
9a3451 |
endif
|
|
|
40c633 |
inkscape --export-png=$(datarootdir)/16-centos-sig-virt.png /tmp/16-centos-sig-virt.svg
|
|
|
40c633 |
rm /tmp/16-centos-sig-virt.svg
|