File tree 4 files changed +33
-3
lines changed
4 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 1
1
autom4te.cache /
2
+ debian /
2
3
man /Makefile
3
4
perl /MYMETA.json
4
5
perl /MYMETA.yml
5
6
perl /Makefile
6
7
perl /blib /
7
8
perl /pm_to_blib
9
+ po /.build
8
10
* ~
Original file line number Diff line number Diff line change 1
- all :
1
+ LOCALEDIR =/usr/share/locale
2
+
3
+ all : mo-files
2
4
cd perl && perl Makefile.PL PREFIX=$(PREFIX ) INSTALLDIRS=vendor
3
5
cd perl && $(MAKE )
4
6
@@ -32,11 +34,16 @@ install: all
32
34
mkdir -p " $( DESTDIR) /usr/lib/needrestart"
33
35
cp lib/vmlinuz-get-version " $( DESTDIR) /usr/lib/needrestart/"
34
36
cp lib/notify.d.sh " $( DESTDIR) /usr/lib/needrestart/"
37
+
38
+ mkdir -p " $( DESTDIR) $( LOCALEDIR) "
39
+ cp -r po/.build/* " $( DESTDIR) $( LOCALEDIR) /"
35
40
36
41
clean :
37
- [ ! -f perl/Makefile ] || ( cd perl && $( MAKE) realclean )
42
+ [ ! -f perl/Makefile ] || ( cd perl && $( MAKE) realclean )
43
+ rm -rf po/.build
44
+
38
45
39
- pot : po/needrestart/messages.pot po/needrestart-notify/messages.pot
46
+ pot-files : po/needrestart/messages.pot po/needrestart-notify/messages.pot
40
47
41
48
po/needrestart/messages.pot : needrestart
42
49
xgettext -o $@ --msgid-bugs-address=thomas@fiasko-nw.net \
@@ -49,3 +56,8 @@ po/needrestart-notify/messages.pot: ex/notify.d/*-*
49
56
xgettext -o $@ --msgid-bugs-address=thomas@fiasko-nw.net \
50
57
--package-name=needrestart-notify --package-version=2.7 \
51
58
--language=shell $^
59
+
60
+
61
+ mo-files :
62
+ make -C po/needrestart
63
+ make -C po/needrestart-notify
Original file line number Diff line number Diff line change
1
+ TEXTDOMAIN: =needrestart-notify
2
+
3
+ all :
4
+ for po in $( wildcard * .po) ; do \
5
+ lang=$$(basename -s .po $$po) ; \
6
+ mkdir -p ../.build/$$ lang/LC_MESSAGES; \
7
+ msgfmt -o ../.build/$$ lang/LC_MESSAGES/$(TEXTDOMAIN ) .mo $$ po; \
8
+ done
Original file line number Diff line number Diff line change
1
+ TEXTDOMAIN: =needrestart
2
+
3
+ all :
4
+ for po in $( wildcard * .po) ; do \
5
+ lang=$$(basename -s .po $$po) ; \
6
+ mkdir -p ../.build/$$ lang/LC_MESSAGES; \
7
+ msgfmt -o ../.build/$$ lang/LC_MESSAGES/$(TEXTDOMAIN ) .mo $$ po; \
8
+ done
You can’t perform that action at this time.
0 commit comments