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 FNAME
="$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/$MODULE.mo"
28 if test ! -d "$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/"; then
29 mkdir
-p "$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/"
31 if test "$mode" = 'install'; then
32 echo "Installing $f as $FNAME"
34 $MSGFMT "$f" -f -o "$FNAME"
35 if test ! -f "$FNAME"; then
36 echo "Cannot install $FNAME. Does $USER have privileges?"
40 elif test "$mode" = 'uninstall'; then
41 echo "removing $FNAME"
43 if test -f "$FNAME"; then
44 echo "Cannot remove $FNAME. Does $USER have privileges?"
48 echo "Unknown mode $mode. script called as $0."
52 if test "$mode" = 'install'; then
54 ==============================================================
55 MO files for $MODULE are installed.
56 ==============================================================
60 ==============================================================
61 MO files for $MODULE are removed.
62 ==============================================================
67 if test "$mode" = 'install'; then
69 ==============================================================
70 All MO files for Samba are installed. You can use "make uninstall"
71 or "make uninstallmo" to remove them.
72 ==============================================================
76 ==============================================================
77 All MO files for Samba are removed. you can use "make install"
78 or "make installmo" to install them.
79 ==============================================================