remove stutter from closing instructions
[ira/wip.git] / source3 / script / installcp.sh
1 #!/bin/sh
2 LIBDIR=$1
3 CODEPAGEDIR=$2
4 BINDIR=$3
5
6 shift
7 shift
8 shift
9
10 echo Installing codepage files in $CODEPAGEDIR
11 for d in $LIBDIR $CODEPAGEDIR; do
12 if [ ! -d $d ]; then
13 mkdir $d
14 if [ ! -d $d ]; then
15   echo Failed to make directory $d
16   exit 1
17 fi
18 fi
19 done
20
21 for p in $*; do
22  echo Creating codepage file $CODEPAGEDIR/codepage.$p from codepage_def.$p
23  $BINDIR/make_smbcodepage c $p codepage_def.$p $CODEPAGEDIR/codepage.$p
24 done
25
26
27 cat << EOF
28 ======================================================================
29 The code pages have been installed. You may uninstall them using the
30 command "make uninstallcp" or make "uninstall" to uninstall binaries,
31 man pages, shell scripts and code pages.
32 ======================================================================
33 EOF
34
35 exit 0
36