2 #fist version March 2002, Herb Lewis
5 DATDIR
=`echo $2 | sed 's/\/\//\//g'`
13 if test ! -d "$DESTDIR/$DATDIR"; then
14 echo "Directory $DESTDIR/$DATDIR does not exist! "
15 echo "Do a "make installmsg
" or "make install" first. "
23 for f
in $SRCDIR/..
/codepages
/*.dat
; do
24 FNAME
="$DESTDIR/$DATDIR/`basename $f`"
25 if test "$mode" = 'install'; then
26 echo "Installing $f as $FNAME "
28 if test ! -f "$FNAME"; then
29 echo "Cannot install $FNAME. Does $USER have privileges? "
33 elif test "$mode" = 'uninstall'; then
34 echo "Removing $FNAME "
36 if test -f "$FNAME"; then
37 echo "Cannot remove $FNAME. Does $USER have privileges? "
41 echo "Unknown mode, $mode. Script called as $0 "
46 if test "$mode" = 'install'; then
48 ======================================================================
49 The dat files have been installed. You may uninstall the dat files
50 using the command "make uninstalldat" or "make uninstall" to uninstall
51 binaries, man pages, dat files, and shell scripts.
52 ======================================================================
56 ======================================================================
57 The dat files have been removed. You may restore these files using
58 the command "make installdat" or "make install" to install binaries,
59 man pages, modules, dat files, and shell scripts.
60 ======================================================================