4 LOCALEDIR
=`echo $2 | sed 's/\/\//\//g'`
10 if test ! -d "$DESTDIR/$LOCALEDIR"; then
11 echo "Directory $DESTDIR/$LOCALEDIR doesn't exist!"
12 echo "Do a \"make installmo\" or \"make install\" first."
22 for dir
in $SRCDIR/locale
/*; do
23 MODULE
=`basename $dir`
24 for f
in $SRCDIR/locale
/$MODULE/*.po
; do
26 LANGUAGE
=`echo $BASE | sed 's/\.po//g'`
27 if test "$LANGUAGE" = '*'; then
28 echo "No .po file exists!"
31 FNAME
="$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/$MODULE.mo"
32 if test ! -d "$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/"; then
33 mkdir
-p "$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/"
35 if test "$mode" = 'install'; then
36 echo "Installing $f as $FNAME"
38 $MSGFMT "$f" -f -o "$FNAME"
39 if test ! -f "$FNAME"; then
40 echo "Cannot install $FNAME. Does $USER have privileges?"
44 elif test "$mode" = 'uninstall'; then
45 echo "removing $FNAME"
47 if test -f "$FNAME"; then
48 echo "Cannot remove $FNAME. Does $USER have privileges?"
52 echo "Unknown mode $mode. script called as $0."
56 if test "$mode" = 'install'; then
58 ==============================================================
59 MO files for $MODULE are installed.
60 ==============================================================
64 ==============================================================
65 MO files for $MODULE are removed.
66 ==============================================================
71 if test "$mode" = 'install'; then
73 ==============================================================
74 All MO files for Samba are installed. You can use "make uninstall"
75 or "make uninstallmo" to remove them.
76 ==============================================================
80 ==============================================================
81 All MO files for Samba are removed. you can use "make install"
82 or "make installmo" to install them.
83 ==============================================================