File: installcp.sh

package info (click to toggle)
samba-doc-ja 2.2.8a%2Bja1.0-0.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 34,192 kB
  • ctags: 22,693
  • sloc: ansic: 197,587; sh: 8,073; perl: 5,377; makefile: 1,489; awk: 1,146; exp: 1,143; csh: 216
file content (48 lines) | stat: -rwxr-xr-x 1,363 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
srcdir=$1
LIBDIR=$2
CODEPAGEDIR=$3
BINDIR=$4

shift
shift
shift
shift

echo Installing codepage files in $CODEPAGEDIR
for d in $LIBDIR $CODEPAGEDIR; do
if [ ! -d $d ]; then
  $srcdir/script/mkinstalldirs $d
if [ ! -d $d ]; then
  echo Failed to make directory $d
  exit 1
fi
fi
done

for p in $*; do
 if [ -f ${srcdir}/codepages/codepage_def.$p ]; then
   echo Creating codepage file $CODEPAGEDIR/codepage.$p
   $BINDIR/make_smbcodepage c $p ${srcdir}/codepages/codepage_def.$p $CODEPAGEDIR/codepage.$p
 fi
 if [ -f ${srcdir}/codepages/CP${p}.TXT ]; then
   echo Creating unicode map $CODEPAGEDIR/unicode_map.$p
   $BINDIR/make_unicodemap $p ${srcdir}/codepages/CP${p}.TXT $CODEPAGEDIR/unicode_map.$p
  if [ -f ${srcdir}/codepages/NormalizationTest.txt ]; then
    echo Creating normalization form table file $CODEPAGEDIR/nftable.$p
    $BINDIR/make_nftable $p ${srcdir}/codepages/NormalizationTest.txt ${srcdir}/codepages/NFMacOSX.txt ${srcdir}/codepages/CP${p}.TXT $CODEPAGEDIR/nftable.$p
  fi
 fi
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