mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
ceb047f601
(This used to be commit 358fcbf2e4
)
37 lines
769 B
Bash
Executable File
37 lines
769 B
Bash
Executable File
#!/bin/sh
|
|
LIBDIR=$1
|
|
CODEPAGEDIR=$2
|
|
BINDIR=$3
|
|
|
|
shift
|
|
shift
|
|
shift
|
|
|
|
echo Installing codepage files in $CODEPAGEDIR
|
|
for d in $LIBDIR $CODEPAGEDIR; do
|
|
if [ ! -d $d ]; then
|
|
mkdir $d
|
|
if [ ! -d $d ]; then
|
|
echo Failed to make directory $d
|
|
exit 1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
for p in $*; do
|
|
echo Creating codepage file $CODEPAGEDIR/codepage.$p from codepage_def.$p
|
|
$BINDIR/make_smbcodepage c $p codepage_def.$p $CODEPAGEDIR/codepage.$p
|
|
done
|
|
|
|
|
|
cat << EOF
|
|
======================================================================
|
|
The code pages have been installed. You may uninstall them using the
|
|
command "make uninstallcp" or make "uninstall" to uninstall binaries,
|
|
man pages, shell scripts and code pages.
|
|
======================================================================
|
|
EOF
|
|
|
|
exit 0
|
|
|