SWAT i18n feature

Shiro Yamada shiro at miraclelinux.com
Fri Sep 12 08:12:18 GMT 2003

Hi there,

As monyo (Motonobu Takahashi) has suggested quite recently, current
Makefile does not install any msg files during "make install" phase.
As a consequence, users are forced to copy po/*.msg manually to ${LIBDIR}
by themselves, in order to display localised SWAT pages.

This problem can be fixed by adding a small change to Makefile.in
and created a new script file called "script/installmsg.sh".
It is almost identical to "script/installdat.sh" written by Herb Lewis,
except for small differences in file names.

Basically what "installmsg.sh" does is just to copy all the po/*.msg
files to ${LIBDIR}. The new Makefile executes this script under the
category of "make installmsg".
Please refer to the attatched diff (makefilein.diff) and "installmsg.sh"
for more details.

Could you merge these scripts to the CVS?

Shiro Yamada

Shiro Yamada
email: shiro at miraclelinux.com
-------------- next part --------------
# first version (Sept 2003) written by Shiro Yamada <shiro at miraclelinux.com>
# based on the first verion (March 2002) of installdat.sh written by Herb Lewis


echo Installing msg files in $MSGDIR

for f in $SRCDIR/po/*.msg; do
	FNAME=$MSGDIR/`basename $f`
	echo $FNAME
	cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
	chmod 0644 $FNAME

cat << EOF
The msg files have been installed. 

exit 0
-------------- next part --------------
--- samba-3.0.0rc3.org/source/Makefile.in	Wed Sep 10 14:36:16 2003
+++ samba-3.0.0rc3/source/Makefile.in	Thu Sep 11 19:42:55 2003
@@ -1161,7 +1161,7 @@
 bin/t_snprintf at EXEEXT@: lib/snprintf.c
 	$(CC) $(FLAGS) -o $@ -DTEST_SNPRINTF lib/snprintf.c -lm
-install: installbin installman installscripts installdat installswat installmodules @INSTALLCLIENT@
+install: installbin installman installscripts installdat installmsg installswat installmodules @INSTALLCLIENT@
 install-everything: install installmodules
@@ -1204,6 +1204,9 @@
 installdat: installdirs
 	@$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR)$(LIBDIR) $(srcdir)
+installmsg: installdirs
+	@$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR)$(LIBDIR) $(srcdir)
 installswat: installdirs
 	@$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR)$(SWATDIR) $(srcdir)

More information about the samba-technical mailing list