home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Education Sampler 1992 [NeXTSTEP]
/
Education_1992_Sampler.iso
/
Demos
/
DE_FrameMaker
/
FrameMaker.app
/
Configure-usenglish
< prev
next >
Wrap
Text File
|
1992-08-24
|
1KB
|
53 lines
#!/bin/sh
#
# Configure FrameMaker to use the UI language given in the script's $0,
# i.e., a script named Configure-ukenglish sets up the languages file
# and templates to refer to ukenglish.
#
Program=$0 FMINIT=fminit2.0
trap "echo $Program"': $rc.' 0
rc=FAILED
langue=`basename $Program | sed -e 's/.*-\(.*\)/\1/'`
echo "Configuring FrameMaker for user-interface language $langue..."
P=`pwd`
cd `expr /$Program : '\(.*\)/[^/]*' \| /$P`/$FMINIT
if [ ! -r languages.$langue ]; then
echo "
Error: no languages.$langue file in `pwd`
" >&2
exit 1
fi
# Check to see that user can write directory.
rm -f Configtmp.$$
touch Configtmp.$$ 2>/dev/null || {
echo "
You do not have permission to configure FrameMaker for $langue.
Contact a system administrator or the person who installed the software.
" >&2
exit 1
}
rm -f Configtmp.$$
# This is lame.
case $langue in
usenglish)
langdir=english
;;
*)
langdir=$langue
;;
esac
# Do it.
rm -f languages
ln -s languages.$langue languages
rm -f fmtemplates
ln -s $langdir/Templates.$langue fmtemplates
rm -f installtraining.files
ln -s $langdir/training.$langue installtraining.files
rc=SUCCEEDED