1 include /usr
/share
/dpkg
/pkg-info.mk
30 PVE_I18N_DEB
=pve-i18n_
${DEB_VERSION}_all.deb
31 PMG_I18N_DEB
=pmg-i18n_
${DEB_VERSION}_all.deb
32 PBS_I18N_DEB
=pbs-i18n_
${DEB_VERSION}_all.deb
34 DEBS
=${PMG_I18N_DEB} $(PVE_I18N_DEB
) $(PBS_I18N_DEB
)
36 PMGLOCALEDIR
=${DESTDIR}/usr
/share
/pmg-i18n
37 PVELOCALEDIR
=${DESTDIR}/usr
/share
/pve-i18n
38 PBSLOCALEDIR
=${DESTDIR}/usr
/share
/pbs-i18n
40 PMG_LANG_FILES
=$(patsubst %, pmg-lang-
%.js
, $(LINGUAS
))
41 PVE_LANG_FILES
=$(patsubst %, pve-lang-
%.js
, $(LINGUAS
))
42 PBS_LANG_FILES
=$(patsubst %, pbs-lang-
%.js
, $(LINGUAS
))
48 $(PMG_I18N_DEB
): $(PVE_I18N_DEB
)
49 $(PBS_I18N_DEB
): $(PVE_I18N_DEB
)
50 $(PVE_I18N_DEB
): | submodule
53 cd dest
; dpkg-buildpackage
-b
-us
-uc
58 test -f pmg-gui
/Makefile
-a
-f proxmox-backup
/Makefile
-a
-f pve-manager
/Makefile \
59 || git submodule update
--init
62 install: ${PMG_LANG_FILES} ${PVE_LANG_FILES} ${PBS_LANG_FILES}
63 install -d
${PMGLOCALEDIR}
64 install -m
0644 ${PMG_LANG_FILES} ${PMGLOCALEDIR}
65 install -d
${PVELOCALEDIR}
66 install -m
0644 ${PVE_LANG_FILES} ${PVELOCALEDIR}
67 install -d
${PBSLOCALEDIR}
68 install -m
0644 ${PBS_LANG_FILES} ${PBSLOCALEDIR}
71 .
/po2js.pl
-t pmg
-v
"${DEB_VERSION}" -o pmg-lang-
$*.js
$?
74 .
/po2js.pl
-t pve
-v
"${DEB_VERSION}" -o pve-lang-
$*.js
$?
77 .
/po2js.pl
-t pbs
-v
"${DEB_VERSION}" -o pbs-lang-
$*.js
$?
79 # parameter 1 is the name
80 # parameter 2 is the directory
82 .
/jsgettext.pl
-p
"$(1) $(shell cd $(2);git rev-parse HEAD)" -o
$(1).pot
$(2)
85 .PHONY
: update update_pot do_update
87 $(call potupdate
,proxmox-widget-toolkit
,proxmox-widget-toolkit
/)
88 $(call potupdate
,pve-manager
,pve-manager
/www
/manager6
/)
89 $(call potupdate
,proxmox-mailgateway
,pmg-gui
/js
/)
90 $(call potupdate
,proxmox-backup
,proxmox-backup
/www
/)
95 for i in
$(LINGUAS
); do echo
-n
"$$i: "; msgmerge
-s
-v
$$i.po messages.pot
>$$i.po.tmp
&& mv
$$i.po.tmp
$$i.po
; done
;
98 git submodule
foreach 'git pull --ff-only origin master'
102 @for i in
$(LINGUAS
); do echo
-n
"$$i: "; msgfmt
--statistics
-o
/dev
/null
$$i.po
; done
104 init-
%.po
: messages.pot
105 msginit
-i
$^
-l
$^
-o
$*.po
--no-translator
107 .INTERMEDIATE
: messages.pot
108 messages.pot
: proxmox-widget-toolkit.pot proxmox-mailgateway.pot pve-manager.pot proxmox-backup.pot
116 find .
-name
'*~' -exec
rm {} ';'
117 rm -rf dest
*.po.tmp
*.js.tmp
*.deb
*.buildinfo
*.changes
*.js messages.pot
119 .PHONY
: upload-pve upload-pmg upload-pbs upload
120 upload-pve
: ${PVE_I18N_DEB}
121 tar cf
- $^|ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist bullseye
122 upload-pmg
: ${PMG_I18N_DEB}
123 tar cf
- $^|ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
--dist bullseye
124 upload-pbs
: ${PBS_I18N_DEB}
125 tar cf
- $^|ssh
-X repoman@repo.proxmox.com
-- upload
--product pbs
--dist bullseye
127 upload
: upload-pve upload-pmg upload-pbs