mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
57408548f3
Adding install/uninstall scripts for compiled codepage files.
Preparing for dynamic codepage loading.
Jeremy (jallison@whistle.com)
(This used to be commit e3fc9533bd
)
34 lines
869 B
Bash
Executable File
34 lines
869 B
Bash
Executable File
#!/bin/sh
|
|
|
|
CPDIR=$1
|
|
shift
|
|
|
|
if [ ! -d $CPDIR ]; then
|
|
echo Directory $CPDIR does not exist!
|
|
echo Do a "make installcp" or "make install" first.
|
|
exit 1
|
|
fi
|
|
|
|
for p in $*; do
|
|
if [ ! -f $CPDIR/codepage.$p ]; then
|
|
echo $CPDIR/codepage.$p does not exist!
|
|
else
|
|
echo Removing $CPDIR/codepage.$p
|
|
rm -f $CPDIR/codepage.$p
|
|
if [ -f $CPDIR/codepage.$p ]; then
|
|
echo Cannot remove $CPDIR/codepage.$p... does $USER have privileges?
|
|
fi
|
|
fi
|
|
done
|
|
|
|
cat << EOF
|
|
======================================================================
|
|
The code pages have been uninstalled. You may reinstall them using
|
|
the command "make installcp" or "make install" to install binaries,
|
|
man pages, shell scripts and code pages. You may recover a previous version
|
|
(if any with "make revert").
|
|
======================================================================
|
|
EOF
|
|
|
|
exit 0
|